JAVA/JS/CPP: libphonenumber v5.7.2, metadata.
[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           <intlFormat>$1 $2 $3-$4</intlFormat>
914         </numberFormat>
915         <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})">
916           <leadingDigits>9[23]</leadingDigits>
917           <format>$2 15-$3-$4</format>
918           <intlFormat>$1 $2 $3-$4</intlFormat>
919         </numberFormat>
920         <numberFormat pattern="(11)(\d{4})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
921           <leadingDigits>1</leadingDigits>
922           <format>$1 $2-$3</format>
923         </numberFormat>
924         <!-- These patterns are a copy of the mobile patterns with the leading 9 removed. -->
925         <numberFormat pattern="(\d{3})(\d{3})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
926           <leadingDigits>
927             2(?:
928               2[013]|
929               3[067]|
930               49|
931               6[01346]|
932               80|
933               9[147-9]
934             )|
935             3(?:
936               36|
937               4[12358]|
938               5[138]|
939               6[24]|
940               7[069]|
941               8[013578]
942             )
943           </leadingDigits>
944           <!-- Several 294X four-digit area codes exist: 2940, 2942, 2945, 2946 and 2948. -->
945           <leadingDigits>
946             2(?:
947               2[013]|
948               3[067]|
949               49|
950               6[01346]|
951               80|
952               9(?:
953                 [17-9]|
954                 4[13479]
955               )
956             )|
957             3(?:
958               36|
959               4[12358]|
960               5(?:
961                 [18]|
962                 3[0-689]
963               )|
964               6[24]|
965               7[069]|
966               8(?:
967                 [01]|
968                 3[013469]|
969                 5[0-39]|
970                 7[0-2459]|
971                 8[0-49]
972               )
973             )
974           </leadingDigits>
975           <format>$1 $2-$3</format>
976         </numberFormat>
977         <numberFormat pattern="(\d{4})(\d{3})(\d{3})" nationalPrefixOptionalWhenFormatting="true">
978           <leadingDigits>
979             3(?:
980               53|
981               8[78]
982             )
983           </leadingDigits>
984           <leadingDigits>
985             3(?:
986               537|
987               8(?:
988                 73|
989                 88
990               )
991             )
992           </leadingDigits>
993           <format>$1 $2-$3</format>
994         </numberFormat>
995         <numberFormat pattern="(\d{4})(\d{2})(\d{4})" nationalPrefixOptionalWhenFormatting="true">
996           <leadingDigits>[23]</leadingDigits>
997           <format>$1 $2-$3</format>
998         </numberFormat>
999       </availableFormats>
1000       <generalDesc>
1001         <nationalNumberPattern>
1002           [1-368]\d{9}|
1003           9\d{10}
1004         </nationalNumberPattern>
1005         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1006       </generalDesc>
1007       <noInternationalDialling>
1008         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1009         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1010         <exampleNumber>8101234567</exampleNumber>
1011       </noInternationalDialling>
1012       <fixedLine>
1013         <!-- Also covering fixed satellite service numbers (670). -->
1014         <nationalNumberPattern>
1015           11\d{8}|
1016           (?:
1017             2(?:
1018               2(?:
1019                 [013]\d|
1020                 2[13-79]|
1021                 4[1-6]|
1022                 5[2457]|
1023                 6[124-8]|
1024                 7[1-4]|
1025                 8[13-6]|
1026                 9[1267]
1027               )|
1028               3(?:
1029                 1[467]|
1030                 2[03-6]|
1031                 3[13-8]|
1032                 [49][2-6]|
1033                 5[2-8]|
1034                 [067]\d
1035               )|
1036               4(?:
1037                 7[3-8]|
1038                 9\d
1039               )|
1040               6(?:
1041                 [01346]\d|
1042                 2[24-6]|
1043                 5[15-8]
1044               )|
1045               80\d|
1046               9(?:
1047                 [0124789]\d|
1048                 3[1-6]|
1049                 5[234]|
1050                 6[2-46]
1051               )
1052             )|
1053             3(?:
1054               3(?:
1055                 2[79]|
1056                 6\d|
1057                 8[2578]
1058               )|
1059               4(?:
1060                 [78]\d|
1061                 0[0124-9]|
1062                 [1-35]\d|
1063                 4[24-7]|
1064                 6[02-9]|
1065                 9[123678]
1066               )|
1067               5(?:
1068                 [138]\d|
1069                 2[1245]|
1070                 4[1-9]|
1071                 6[2-4]|
1072                 7[1-6]
1073               )|
1074               6[24]\d|
1075               7(?:
1076                 [0469]\d|
1077                 1[1568]|
1078                 2[013-9]|
1079                 3[145]|
1080                 5[14-8]|
1081                 7[2-57]|
1082                 8[0-24-9]
1083               )|
1084               8(?:
1085                 [013578]\d|
1086                 2[15-7]|
1087                 4[13-6]|
1088                 6[1-357-9]|
1089                 9[124]
1090               )
1091             )|
1092             670\d
1093           )\d{6}
1094         </nationalNumberPattern>
1095         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1096         <exampleNumber>1123456789</exampleNumber>
1097       </fixedLine>
1098       <mobile>
1099         <!-- Also covers mobile satellite services (675 numbers). -->
1100         <!-- 4-digit area codes are not covered here in detail - we only check the digit after the
1101              area code is in the range 2-9. The four-digit area-code checking is done in detail if
1102              we attempt to strip the caller-pays token (15) from the number. -->
1103         <nationalNumberPattern>
1104           675\d{7}|
1105           9(?:
1106             11[2-9]\d{7}|
1107             (?:
1108               2(?:
1109                 2[013]|
1110                 3[067]|
1111                 49|
1112                 6[01346]|
1113                 80|
1114                 9[147-9]
1115               )|
1116               3(?:
1117                 36|
1118                 4[12358]|
1119                 5[138]|
1120                 6[24]|
1121                 7[069]|
1122                 8[013578]
1123               )
1124             )[2-9]\d{6}|
1125             \d{4}[2-9]\d{5}
1126           )
1127         </nationalNumberPattern>
1128         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1129         <exampleNumber>91123456789</exampleNumber>
1130       </mobile>
1131       <tollFree>
1132         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
1133         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1134         <exampleNumber>8001234567</exampleNumber>
1135       </tollFree>
1136       <premiumRate>
1137         <nationalNumberPattern>60[04579]\d{7}</nationalNumberPattern>
1138         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1139         <exampleNumber>6001234567</exampleNumber>
1140       </premiumRate>
1141       <uan>
1142         <nationalNumberPattern>810\d{7}</nationalNumberPattern>
1143         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1144         <exampleNumber>8101234567</exampleNumber>
1145       </uan>
1146       <emergency>
1147         <nationalNumberPattern>
1148           1(?:
1149             0[017]|
1150             28
1151           )
1152         </nationalNumberPattern>
1153         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1154         <exampleNumber>101</exampleNumber>
1155       </emergency>
1156     </territory>
1157
1158     <!-- American Samoa -->
1159     <!-- http://www.itu.int/oth/T0202000004/en -->
1160     <territory id="AS" countryCode="1" leadingDigits="684" nationalPrefix="1"
1161                internationalPrefix="011">
1162       <generalDesc>
1163         <!-- NANPA country - uses US formatting rules -->
1164         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
1165         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1166       </generalDesc>
1167       <fixedLine>
1168         <nationalNumberPattern>
1169           6846(?:
1170             22|
1171             33|
1172             44|
1173             55|
1174             77|
1175             88|
1176             9[19]
1177           )\d{4}
1178         </nationalNumberPattern>
1179         <exampleNumber>6846221234</exampleNumber>
1180       </fixedLine>
1181       <mobile>
1182         <!-- Adding 24[246], operated from Blue Sky. -->
1183         <nationalNumberPattern>
1184           684(?:
1185             733|
1186             25[2468]
1187           )\d{4}
1188         </nationalNumberPattern>
1189         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1190         <exampleNumber>6847331234</exampleNumber>
1191       </mobile>
1192       <tollFree>
1193         <nationalNumberPattern>
1194           8(?:
1195             00|
1196             55|
1197             66|
1198             77|
1199             88
1200           )[2-9]\d{6}
1201         </nationalNumberPattern>
1202         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1203         <exampleNumber>8002123456</exampleNumber>
1204       </tollFree>
1205       <premiumRate>
1206         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1207         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1208         <exampleNumber>9002123456</exampleNumber>
1209       </premiumRate>
1210       <personalNumber>
1211         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
1212         <nationalNumberPattern>
1213           5(?:
1214             00|
1215             33|
1216             44
1217           )[2-9]\d{6}
1218         </nationalNumberPattern>
1219         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1220         <exampleNumber>5002345678</exampleNumber>
1221       </personalNumber>
1222       <emergency>
1223         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf
1224              http://www.airportairport.com/American-Samoa.html
1225              http://www.frommers.com/destinations/americansamoa/3038020157.html -->
1226         <nationalNumberPattern>911</nationalNumberPattern>
1227         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1228         <exampleNumber>911</exampleNumber>
1229       </emergency>
1230     </territory>
1231
1232     <!-- Austria -->
1233     <!-- http://www.rtr.at/en/tk/E129 -->
1234     <territory id="AT" countryCode="43" internationalPrefix="00"
1235                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
1236       <availableFormats>
1237         <numberFormat pattern="(1)(\d{3,12})">
1238           <leadingDigits>1</leadingDigits>
1239           <format>$1 $2</format>
1240         </numberFormat>
1241         <!-- The following three patterns are the most common for prefixes 050, 057 and 059, as
1242              found on Austrian web pages. -->
1243         <numberFormat pattern="(5\d)(\d{3,5})">
1244           <leadingDigits>5[079]</leadingDigits>
1245           <format>$1 $2</format>
1246         </numberFormat>
1247         <numberFormat pattern="(5\d)(\d{3})(\d{3,4})">
1248           <leadingDigits>5[079]</leadingDigits>
1249           <format>$1 $2 $3</format>
1250         </numberFormat>
1251         <numberFormat pattern="(5\d)(\d{4})(\d{4,7})">
1252           <leadingDigits>5[079]</leadingDigits>
1253           <format>$1 $2 $3</format>
1254         </numberFormat>
1255         <numberFormat pattern="(\d{3})(\d{3,10})">
1256           <leadingDigits>
1257             316|
1258             46|
1259             51|
1260             732|
1261             6(?:
1262               44|
1263               5[0-3579]|
1264               [6-9]
1265             )|
1266             7(?:
1267               1|
1268               [28]0
1269             )|
1270             [89]
1271           </leadingDigits>
1272           <format>$1 $2</format>
1273         </numberFormat>
1274         <numberFormat pattern="(\d{4})(\d{3,9})">
1275           <leadingDigits>
1276             2|
1277             3(?:
1278               1[1-578]|
1279               [3-8]
1280             )|
1281             4[2378]|
1282             5[2-6]|
1283             6(?:
1284               [12]|
1285               4[1-35-9]|
1286               5[468]
1287             )|
1288             7(?:
1289               2[1-8]|
1290               35|
1291               4[1-8]|
1292               [57-9]
1293             )
1294           </leadingDigits>
1295             <format>$1 $2</format>
1296           </numberFormat>
1297       </availableFormats>
1298       <generalDesc>
1299         <nationalNumberPattern>[1-9]\d{3,12}</nationalNumberPattern>
1300         <possibleNumberPattern>\d{3,13}</possibleNumberPattern>
1301       </generalDesc>
1302       <fixedLine>
1303         <!-- Note that the full area code is not validated - just the first 3 digits. This also
1304              means that even though for most Austrian numbers the minimum length is 7, we allow 6
1305              since we don't differentiate below between 3 and 4 digit area codes for reasons of
1306              efficiency. -->
1307         <nationalNumberPattern>
1308           1\d{3,12}|
1309           (?:
1310             2(?:
1311               1[467]|
1312               2[13-8]|
1313               5[2357]|
1314               6[1-46-8]|
1315               7[1-8]|
1316               8[124-7]|
1317               9[1458]
1318             )|
1319             3(?:
1320               1[1-8]|
1321               3[23568]|
1322               4[5-7]|
1323               5[1378]|
1324               6[1-38]|
1325               8[3-68]
1326             )|
1327             4(?:
1328               2[1-8]|
1329               35|
1330               63|
1331               7[1368]|
1332               8[2457]
1333             )|
1334             5(?:
1335               12|
1336               2[1-8]|
1337               3[357]|
1338               4[147]|
1339               5[12578]|
1340               6[37]
1341             )|
1342             6(?:
1343               13|
1344               2[1-47]|
1345               4[1-35-8]|
1346               5[468]|
1347               62
1348             )|
1349             7(?:
1350               2[1-8]|
1351               3[25]|
1352               4[13478]|
1353               5[68]|
1354               6[16-8]|
1355               7[1-6]|
1356               9[45]
1357             )
1358           )\d{3,10}
1359         </nationalNumberPattern>
1360         <exampleNumber>1234567890</exampleNumber>
1361       </fixedLine>
1362       <mobile>
1363         <nationalNumberPattern>
1364           6(?:
1365             44|
1366             5[0-3579]|
1367             6[013-9]|
1368             [7-9]\d
1369           )\d{4,10}
1370         </nationalNumberPattern>
1371         <possibleNumberPattern>\d{7,13}</possibleNumberPattern>
1372         <exampleNumber>644123456</exampleNumber>
1373       </mobile>
1374       <tollFree>
1375         <nationalNumberPattern>80[02]\d{6,10}</nationalNumberPattern>
1376         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1377         <exampleNumber>800123456</exampleNumber>
1378       </tollFree>
1379       <premiumRate>
1380         <nationalNumberPattern>
1381           (?:
1382             711|
1383             9(?:
1384               0[01]|
1385               3[019]
1386             )
1387           )\d{6,10}
1388         </nationalNumberPattern>
1389         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1390         <exampleNumber>900123456</exampleNumber>
1391       </premiumRate>
1392       <sharedCost>
1393         <nationalNumberPattern>
1394           8(?:
1395             10|
1396             2[018]
1397           )\d{6,10}
1398         </nationalNumberPattern>
1399         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1400         <exampleNumber>810123456</exampleNumber>
1401       </sharedCost>
1402       <voip>
1403         <nationalNumberPattern>780\d{6,10}</nationalNumberPattern>
1404         <possibleNumberPattern>\d{9,13}</possibleNumberPattern>
1405         <exampleNumber>780123456</exampleNumber>
1406       </voip>
1407       <uan>
1408         <nationalNumberPattern>
1409           5(?:
1410             (?:
1411               0[1-9]|
1412               17
1413             )\d{2,10}|
1414             [79]\d{3,11}
1415           )|
1416           720\d{6,10}
1417         </nationalNumberPattern>
1418         <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
1419         <exampleNumber>50123</exampleNumber>
1420       </uan>
1421       <emergency>
1422         <nationalNumberPattern>
1423           1(?:
1424             [12]2|
1425             33|
1426             44
1427           )
1428         </nationalNumberPattern>
1429         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1430         <exampleNumber>112</exampleNumber>
1431       </emergency>
1432     </territory>
1433
1434     <!-- Australia -->
1435     <!-- Metadata shared with Cocos Islands (CC) and Christmas Islands (CX) -->
1436     <!-- http://www.itu.int/oth/T020200000D/en -->
1437     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
1438     <territory id="AU" countryCode="61" mainCountryForCode="true"
1439                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
1440                preferredInternationalPrefix="0011" nationalPrefix="0">
1441       <availableFormats>
1442         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
1443           pattern="([2378])(\d{4})(\d{4})">
1444           <leadingDigits>[2378]</leadingDigits>
1445           <format>$1 $2 $3</format>
1446         </numberFormat>
1447         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1448           pattern="(\d{3})(\d{3})(\d{3})">
1449           <leadingDigits>
1450             [45]|
1451             14
1452           </leadingDigits>
1453           <format>$1 $2 $3</format>
1454         </numberFormat>
1455         <numberFormat nationalPrefixFormattingRule="$NP$FG"
1456           pattern="(16)(\d{3})(\d{2,4})">
1457           <leadingDigits>16</leadingDigits>
1458           <format>$1 $2 $3</format>
1459         </numberFormat>
1460         <numberFormat nationalPrefixFormattingRule="$FG"
1461           pattern="(1[389]\d{2})(\d{3})(\d{3})">
1462           <leadingDigits>
1463             1(?:
1464               [38]0|
1465               90
1466             )
1467           </leadingDigits>
1468           <leadingDigits>
1469             1(?:
1470               [38]00|
1471               90
1472             )
1473           </leadingDigits>
1474           <format>$1 $2 $3</format>
1475         </numberFormat>
1476         <numberFormat nationalPrefixFormattingRule="$FG"
1477           pattern="(180)(2\d{3})">
1478           <leadingDigits>180</leadingDigits>
1479           <leadingDigits>1802</leadingDigits>
1480           <format>$1 $2</format>
1481         </numberFormat>
1482         <numberFormat nationalPrefixFormattingRule="$FG"
1483           pattern="(19\d)(\d{3})">
1484           <leadingDigits>19[13]</leadingDigits>
1485           <format>$1 $2</format>
1486         </numberFormat>
1487         <numberFormat nationalPrefixFormattingRule="$FG"
1488           pattern="(19\d{2})(\d{4})">
1489           <leadingDigits>19[67]</leadingDigits>
1490           <format>$1 $2</format>
1491         </numberFormat>
1492         <numberFormat nationalPrefixFormattingRule="$FG"
1493           pattern="(13)(\d{2})(\d{2})">
1494           <leadingDigits>13[1-9]</leadingDigits>
1495           <format>$1 $2 $3</format>
1496         </numberFormat>
1497       </availableFormats>
1498       <generalDesc>
1499         <nationalNumberPattern>[1-578]\d{5,9}</nationalNumberPattern>
1500         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1501       </generalDesc>
1502       <noInternationalDialling>
1503         <nationalNumberPattern>
1504           1(?:
1505             3(?:
1506               \d{4}|
1507               00\d{6}
1508             )|
1509             80(?:
1510               0\d{6}|
1511               2\d{3}
1512             )
1513           )
1514         </nationalNumberPattern>
1515         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1516         <exampleNumber>1300123456</exampleNumber>
1517       </noInternationalDialling>
1518       <fixedLine>
1519         <!-- Excludes prefixes used by Cocos Islands and Christmas Islands -->
1520         <nationalNumberPattern>
1521           [237]\d{8}|
1522           8(?:
1523             [68]\d{3}|
1524             7[0-69]\d{2}|
1525             9(?:
1526               [02-9]\d{2}|
1527               1(?:
1528                 [0-57-9]\d|
1529                 6[0135-9]
1530               )
1531             )
1532           )\d{4}
1533         </nationalNumberPattern>
1534         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1535         <exampleNumber>212345678</exampleNumber>
1536       </fixedLine>
1537       <mobile>
1538         <!-- Includes MobileSat and Thuraya satellite services. According to the wikipedia page,
1539              other ranges 14[1-3] are not currently used. -->
1540         <nationalNumberPattern>
1541           14(?:
1542             5\d|
1543             71
1544           )\d{5}|
1545           4(?:
1546             [0-2]\d|
1547             3[0-57-9]|
1548             4[47-9]|
1549             5[0-35-9]|
1550             6[6-9]|
1551             [79][07-9]|
1552             8[17-9]
1553           )\d{6}
1554         </nationalNumberPattern>
1555         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1556         <exampleNumber>412345678</exampleNumber>
1557       </mobile>
1558       <pager>
1559         <nationalNumberPattern>16\d{3,7}</nationalNumberPattern>
1560         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
1561         <exampleNumber>1612345</exampleNumber>
1562       </pager>
1563       <tollFree>
1564         <nationalNumberPattern>
1565           180(?:
1566             0\d{3}|
1567             2
1568           )\d{3}
1569         </nationalNumberPattern>
1570         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1571         <exampleNumber>1800123456</exampleNumber>
1572       </tollFree>
1573       <premiumRate>
1574         <nationalNumberPattern>
1575           19(?:
1576             0[0126]\d{6}|
1577             [13-5]\d{3}|
1578             [679]\d{5}
1579           )
1580         </nationalNumberPattern>
1581         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1582         <exampleNumber>1900123456</exampleNumber>
1583       </premiumRate>
1584       <sharedCost>
1585       <!-- Local-rate (SmartNumbers) are put here because they are a reverse-charge network,
1586            although they charge a small local call connect fee (around 25c). These start with 13
1587            or 1300. -->
1588         <nationalNumberPattern>
1589           13(?:
1590             00\d{2}
1591           )?\d{4}
1592         </nationalNumberPattern>
1593         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
1594         <exampleNumber>1300123456</exampleNumber>
1595       </sharedCost>
1596       <!-- Wikipedia was the source for these types of numbers, and number allocation search here
1597            http://web.acma.gov.au/numb/openAccess/inquiry/allocationSearch.do confirms this. (Search
1598            from 0500000000 to 0590000000) -->
1599       <personalNumber>
1600         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
1601         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1602         <exampleNumber>500123456</exampleNumber>
1603       </personalNumber>
1604       <voip>
1605         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
1606         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1607         <exampleNumber>550123456</exampleNumber>
1608       </voip>
1609       <emergency>
1610         <nationalNumberPattern>
1611           000|
1612           112
1613         </nationalNumberPattern>
1614         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1615         <exampleNumber>112</exampleNumber>
1616       </emergency>
1617     </territory>
1618
1619     <!-- Aruba -->
1620     <!-- http://www.itu.int/oth/T020200000B/en -->
1621     <territory id="AW" countryCode="297" internationalPrefix="00">
1622       <availableFormats>
1623         <numberFormat pattern="(\d{3})(\d{4})">
1624           <format>$1 $2</format>
1625         </numberFormat>
1626       </availableFormats>
1627       <generalDesc>
1628         <nationalNumberPattern>[25-9]\d{6}</nationalNumberPattern>
1629         <possibleNumberPattern>\d{7}</possibleNumberPattern>
1630       </generalDesc>
1631       <fixedLine>
1632         <nationalNumberPattern>
1633           5(?:
1634             2\d|
1635             8[1-9]
1636           )\d{4}
1637         </nationalNumberPattern>
1638         <exampleNumber>5212345</exampleNumber>
1639       </fixedLine>
1640       <mobile>
1641         <!-- The prefixes 662, 994 & 96[45], while not in the plan, seem to be used in mobile
1642              numbers found online. -->
1643         <nationalNumberPattern>
1644           (?:
1645             5(?:
1646               6\d|
1647               9[2-478]
1648             )|
1649             6(?:
1650               [039]0|
1651               22|
1652               4[01]|
1653               6[0-2]
1654             )|
1655             7[34]\d|
1656             9(?:
1657               6[45]|
1658               9[4-8]
1659             )
1660           )\d{4}
1661         </nationalNumberPattern>
1662         <exampleNumber>5601234</exampleNumber>
1663       </mobile>
1664       <tollFree>
1665         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
1666         <exampleNumber>8001234</exampleNumber>
1667       </tollFree>
1668       <premiumRate>
1669         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
1670         <exampleNumber>9001234</exampleNumber>
1671       </premiumRate>
1672       <voip>
1673         <nationalNumberPattern>
1674           28\d{5}|
1675           501\d{4}
1676         </nationalNumberPattern>
1677         <exampleNumber>5011234</exampleNumber>
1678       </voip>
1679       <emergency>
1680         <!-- http://www.yellowpages-aruba.com/home/emergency-numbers -->
1681         <nationalNumberPattern>
1682           100|
1683           911
1684         </nationalNumberPattern>
1685         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1686         <exampleNumber>911</exampleNumber>
1687       </emergency>
1688     </territory>
1689
1690     <!-- Ã…land Islands. -->
1691     <!-- Metadata shared with Finland. -->
1692     <!-- http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html -->
1693     <territory id="AX" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
1694                nationalPrefixFormattingRule="$NP$FG">
1695       <!-- The general desc and fixed line are numbers different from Finland metadata. -->
1696       <generalDesc>
1697         <nationalNumberPattern>
1698           [135]\d{5,9}|
1699           [27]\d{4,9}|
1700           4\d{5,10}|
1701           6\d{7,8}|
1702           8\d{6,9}
1703         </nationalNumberPattern>
1704         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
1705       </generalDesc>
1706       <noInternationalDialling>
1707         <!-- According to the national numbering plan, service numbers are in general not accessible
1708              from abroad, although 600/700/800 numbers may be. -->
1709         <nationalNumberPattern>
1710           [13]00\d{3,7}|
1711           2(?:
1712             0(?:
1713               0\d{3,7}|
1714               2[023]\d{1,6}|
1715               9[89]\d{1,6}
1716             )
1717           )|
1718           60(?:
1719             [12]\d{5,6}|
1720             6\d{7}
1721           )|
1722           7(?:
1723             1\d{7}|
1724             3\d{8}|
1725             5[03-9]\d{2,7}
1726           )
1727         </nationalNumberPattern>
1728         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1729         <exampleNumber>100123</exampleNumber>
1730       </noInternationalDialling>
1731       <fixedLine>
1732         <nationalNumberPattern>18[1-8]\d{3,9}</nationalNumberPattern>
1733         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
1734         <exampleNumber>1812345678</exampleNumber>
1735       </fixedLine>
1736       <!-- The mobile, toll free, premium rate and UAN numbers copied from Finland. -->
1737       <mobile>
1738         <nationalNumberPattern>
1739           4\d{5,10}|
1740           50\d{4,8}
1741         </nationalNumberPattern>
1742         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
1743         <exampleNumber>412345678</exampleNumber>
1744       </mobile>
1745       <tollFree>
1746         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
1747         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
1748         <exampleNumber>8001234567</exampleNumber>
1749       </tollFree>
1750       <premiumRate>
1751         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
1752         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1753         <exampleNumber>600123456</exampleNumber>
1754       </premiumRate>
1755       <uan>
1756         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
1757              assigned to institutions such as universities, the national post, etc, where they are
1758              not otherwise classified as toll-free or premium-rate numbers. -->
1759         <nationalNumberPattern>
1760           [13]0\d{4,8}|
1761           2(?:
1762             0(?:
1763               [016-8]\d{3,7}|
1764               [2-59]\d{2,7}
1765             )|
1766             9\d{4,8}
1767           )|
1768           60(?:
1769             [12]\d{5,6}|
1770             6\d{7}
1771           )|
1772           7(?:
1773             1\d{7}|
1774             3\d{8}|
1775             5[03-9]\d{2,7}
1776           )
1777         </nationalNumberPattern>
1778         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
1779         <exampleNumber>10112345</exampleNumber>
1780       </uan>
1781       <emergency>
1782         <!-- http://www.arrivalguides.com/en/Travelguides/Europe/Finland/ALAND -->
1783         <nationalNumberPattern>112</nationalNumberPattern>
1784         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1785         <exampleNumber>112</exampleNumber>
1786       </emergency>
1787     </territory>
1788
1789     <!-- Azerbaijan -->
1790     <!-- http://www.itu.int/oth/T020200000F/en -->
1791     <territory id="AZ" countryCode="994" internationalPrefix="00" nationalPrefix="0"
1792                nationalPrefixFormattingRule="($NP$FG)">
1793       <availableFormats>
1794         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
1795           <leadingDigits>
1796             (?:
1797               1[28]|
1798               2(?:
1799                 [45]2|
1800                 [0-36]
1801               )|
1802               365
1803             )
1804           </leadingDigits>
1805           <format>$1 $2 $3 $4</format>
1806         </numberFormat>
1807         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
1808           <leadingDigits>[4-8]</leadingDigits>
1809           <format>$1 $2 $3 $4</format>
1810         </numberFormat>
1811         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"
1812           nationalPrefixFormattingRule="$NP$FG">
1813           <leadingDigits>9</leadingDigits>
1814           <format>$1 $2 $3 $4</format>
1815         </numberFormat>
1816       </availableFormats>
1817       <generalDesc>
1818         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
1819         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
1820       </generalDesc>
1821       <fixedLine>
1822         <nationalNumberPattern>
1823           (?:
1824             1[28]\d|
1825             2(?:
1826               02|
1827               1[24]|
1828               2[2-4]|
1829               33|
1830               [45]2|
1831               6[23]
1832             )|
1833             365
1834           )\d{6}
1835         </nationalNumberPattern>
1836         <exampleNumber>123123456</exampleNumber>
1837       </fixedLine>
1838       <mobile>
1839         <nationalNumberPattern>
1840           (?:
1841             4[04]|
1842             5[015]|
1843             60|
1844             7[07]
1845           )\d{7}
1846         </nationalNumberPattern>
1847         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1848         <exampleNumber>401234567</exampleNumber>
1849       </mobile>
1850       <tollFree>
1851         <!-- 88 is listed as fixed-line for Baku in the ITU document, but online numbers seem to
1852              suggest they are in fact national toll-free numbers. -->
1853         <nationalNumberPattern>88\d{7}</nationalNumberPattern>
1854         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1855         <exampleNumber>881234567</exampleNumber>
1856       </tollFree>
1857       <premiumRate>
1858         <!-- These are marked as Interactive Calls in the ITU document. -->
1859         <nationalNumberPattern>900200\d{3}</nationalNumberPattern>
1860         <possibleNumberPattern>\d{9}</possibleNumberPattern>
1861         <exampleNumber>900200123</exampleNumber>
1862       </premiumRate>
1863       <emergency>
1864         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_978.html
1865              http://wikitravel.org/en/Azerbaijan#Emergency_contact_numbers -->
1866         <nationalNumberPattern>
1867           1(?:
1868             0[123]|
1869             12
1870           )
1871         </nationalNumberPattern>
1872         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1873         <exampleNumber>101</exampleNumber>
1874       </emergency>
1875     </territory>
1876
1877     <!-- Bosnia and Herzegovina -->
1878     <!-- http://www.rak.ba/eng/index.php?uid=1272016657 (accessible from
1879          http://www.cra.ba/en/telecom/numbering/) -->
1880     <!-- http://en.wikipedia.org/wiki/+387 -->
1881     <territory id="BA" countryCode="387" internationalPrefix="00"
1882                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
1883       <availableFormats>
1884         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1885           <leadingDigits>[3-5]</leadingDigits>
1886           <format>$1 $2-$3</format>
1887         </numberFormat>
1888         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
1889           <leadingDigits>
1890             6[1-356]|
1891             [7-9]
1892           </leadingDigits>
1893           <format>$1 $2 $3</format>
1894         </numberFormat>
1895         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
1896           <leadingDigits>6[047]</leadingDigits>
1897           <format>$1 $2 $3 $4</format>
1898         </numberFormat>
1899       </availableFormats>
1900       <generalDesc>
1901         <nationalNumberPattern>[3-9]\d{7,8}</nationalNumberPattern>
1902         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
1903       </generalDesc>
1904       <fixedLine>
1905         <nationalNumberPattern>
1906           (?:
1907             [35]\d|
1908             49
1909           )\d{6}
1910         </nationalNumberPattern>
1911         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
1912         <exampleNumber>30123456</exampleNumber>
1913       </fixedLine>
1914       <mobile>
1915         <nationalNumberPattern>
1916           6(?:
1917             03|
1918             44|
1919             71|
1920             [1-356]
1921           )\d{6}
1922         </nationalNumberPattern>
1923         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
1924         <exampleNumber>61123456</exampleNumber>
1925       </mobile>
1926       <tollFree>
1927         <nationalNumberPattern>8[08]\d{6}</nationalNumberPattern>
1928         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1929         <exampleNumber>80123456</exampleNumber>
1930       </tollFree>
1931       <premiumRate>
1932         <nationalNumberPattern>9[0246]\d{6}</nationalNumberPattern>
1933         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1934         <exampleNumber>90123456</exampleNumber>
1935       </premiumRate>
1936       <sharedCost>
1937         <!-- Using this category to model national tariff numbers - these are under Shared Cost in
1938              the plan. -->
1939         <nationalNumberPattern>8[12]\d{6}</nationalNumberPattern>
1940         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1941         <exampleNumber>82123456</exampleNumber>
1942       </sharedCost>
1943       <uan>
1944         <!-- Using this to classify nomad numbers. -->
1945         <nationalNumberPattern>70[23]\d{5}</nationalNumberPattern>
1946         <possibleNumberPattern>\d{8}</possibleNumberPattern>
1947         <exampleNumber>70223456</exampleNumber>
1948       </uan>
1949       <emergency>
1950         <nationalNumberPattern>12[234]</nationalNumberPattern>
1951         <possibleNumberPattern>\d{3}</possibleNumberPattern>
1952         <exampleNumber>122</exampleNumber>
1953       </emergency>
1954     </territory>
1955
1956     <!-- Barbados -->
1957     <!-- http://www.itu.int/oth/T0202000013/en -->
1958     <territory id="BB" countryCode="1" leadingDigits="246" nationalPrefix="1"
1959                internationalPrefix="011">
1960       <generalDesc>
1961         <!-- NANPA country - uses US formatting rules -->
1962         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
1963         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
1964       </generalDesc>
1965       <fixedLine>
1966         <nationalNumberPattern>246[2-9]\d{6}</nationalNumberPattern>
1967         <exampleNumber>2462345678</exampleNumber>
1968       </fixedLine>
1969       <mobile>
1970         <nationalNumberPattern>
1971           246(?:
1972             (?:
1973               2[346]|
1974               45|
1975               82
1976             )\d|
1977             25[0-4]
1978           )\d{4}
1979         </nationalNumberPattern>
1980         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1981         <exampleNumber>2462501234</exampleNumber>
1982       </mobile>
1983       <tollFree>
1984         <nationalNumberPattern>
1985           8(?:
1986             00|
1987             55|
1988             66|
1989             77|
1990             88
1991           )[2-9]\d{6}
1992         </nationalNumberPattern>
1993         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1994         <exampleNumber>8002123456</exampleNumber>
1995       </tollFree>
1996       <premiumRate>
1997         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
1998         <possibleNumberPattern>\d{10}</possibleNumberPattern>
1999         <exampleNumber>9002123456</exampleNumber>
2000       </premiumRate>
2001       <personalNumber>
2002         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
2003         <nationalNumberPattern>
2004           5(?:
2005             00|
2006             33|
2007             44
2008           )[2-9]\d{6}
2009         </nationalNumberPattern>
2010         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2011         <exampleNumber>5002345678</exampleNumber>
2012       </personalNumber>
2013       <emergency>
2014         <nationalNumberPattern>[235]11</nationalNumberPattern>
2015         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2016         <exampleNumber>211</exampleNumber>
2017       </emergency>
2018     </territory>
2019
2020     <!-- Bangladesh -->
2021     <!-- http://www.itu.int/oth/T0202000012/en -->
2022     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Bangladesh -->
2023     <!-- http://www.btrc.gov.bd/engineering/national_numbering_plan_2005.pdf -->
2024     <territory id="BD" countryCode="880" internationalPrefix="00[12]?"
2025                preferredInternationalPrefix="00"
2026                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
2027       <availableFormats>
2028         <numberFormat pattern="(2)(\d{7})">
2029           <leadingDigits>2</leadingDigits>
2030           <format>$1-$2</format>
2031         </numberFormat>
2032         <numberFormat pattern="(\d{2})(\d{4,6})">
2033           <leadingDigits>[3-79]1</leadingDigits>
2034           <format>$1-$2</format>
2035         </numberFormat>
2036         <!-- Mobile numbers, VOIP, and four-digit fixed-line area codes. -->
2037         <numberFormat pattern="(\d{4})(\d{3,6})">
2038           <leadingDigits>
2039             1|
2040             3(?:
2041               0|
2042               [2-58]2
2043             )|
2044             4(?:
2045               0|
2046               [25]2|
2047               3[23]|
2048               [4689][25]
2049             )|
2050             5(?:
2051               [02-578]2|
2052               6[25]
2053             )|
2054             6(?:
2055               [0347-9]2|
2056               [26][25]
2057             )|
2058             7[02-9]2|
2059             8(?:
2060               [023][23]|
2061               [4-7]2
2062             )|
2063             9(?:
2064               [02][23]|
2065               [458]2|
2066               6[016]
2067             )
2068           </leadingDigits>
2069           <format>$1-$2</format>
2070         </numberFormat>
2071         <numberFormat pattern="(\d{3})(\d{3,7})">
2072           <leadingDigits>
2073             [3-79][2-9]|
2074             8
2075           </leadingDigits>
2076           <format>$1-$2</format>
2077         </numberFormat>
2078       </availableFormats>
2079       <generalDesc>
2080       <!-- This is quite complex so we can define that numbers beginning with 88 are not part of the
2081            plan, so the country code can be accurately stripped off. -->
2082         <nationalNumberPattern>
2083           [2-79]\d{5,9}|
2084           1\d{9}|
2085           8[0-7]\d{4,8}
2086         </nationalNumberPattern>
2087         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
2088       </generalDesc>
2089       <fixedLine>
2090         <!-- There was a plan to move to 10 digit fixed-line numbers, but this does not seem to have
2091              been realised, judging by online numbers and wikipedia. These patterns are grouped
2092              first by leading digit, then within by number of digits. Several Dhaka prefixes (02 731
2093              etc) are included despite not being mentioned on the wikipedia page or ITU doc due to
2094              online evidence. Another oddity is Chittagong - some numbers have a leading 2, others
2095              do not - both are allowed for now. For some area codes, the subscriber number length
2096              described in our source documentation doesn't match numbers online (e.g. 05222) so we
2097              allow both for now. (This applies to 0431, 04329, 04623, 05327 as well). We have
2098              also added 04452 and 04923 from numbers found online. -->
2099         <nationalNumberPattern>
2100           2(?:
2101             7(?:
2102               1[0-267]|
2103               2[0-289]|
2104               3[0-29]|
2105               [46][01]|
2106               5[1-3]|
2107               7[017]|
2108               91
2109             )|
2110             8(?:
2111               0[125]|
2112               [139][1-6]|
2113               2[0157-9]|
2114               6[1-35]|
2115               7[1-5]|
2116               8[1-8]
2117             )|
2118             9(?:
2119               0[0-2]|
2120               1[1-4]|
2121               2[568]|
2122               3[3-6]|
2123               5[5-7]|
2124               6[0167]|
2125               7[15]|
2126               8[016-8]
2127             )
2128           )\d{4}|
2129           3(?:
2130             12?[5-7]\d{2}|
2131             0(?:
2132               2(?:
2133                 [025-79]\d|
2134                 [348]\d{1,2}
2135               )|
2136               3(?:
2137                 [2-4]\d|
2138                 [56]\d?
2139               )
2140             )|
2141             2(?:
2142               1\d{2}|
2143               2(?:
2144                 [12]\d|
2145                 [35]\d{1,2}|
2146                 4\d?
2147               )
2148             )|
2149             3(?:
2150               1\d{2}|
2151               2(?:
2152                 [2356]\d|
2153                 4\d{1,2}
2154               )
2155             )|
2156             4(?:
2157               1\d{2}|
2158               2(?:
2159                 2\d{1,2}|
2160                 [47]|
2161                 5\d{2}
2162               )
2163             )|
2164             5(?:
2165               1\d{2}|
2166               29
2167             )|
2168             [67]1\d{2}|
2169             8(?:
2170               1\d{2}|
2171               2(?:
2172                 2\d{2}|
2173                 3|
2174                 4\d
2175               )
2176             )|
2177           )\d{3}|
2178           4(?:
2179             0(?:
2180               2(?:
2181                 [09]\d|
2182                 7
2183               )|
2184               33\d{2}
2185             )|
2186             1\d{3}|
2187             2(?:
2188               1\d{2}|
2189               2(?:
2190                 [25]\d?|
2191                 [348]\d|
2192                 [67]\d{1,2}
2193               )
2194             )|
2195             3(?:
2196               1\d{2}(?:\d{2})?|
2197               2(?:
2198                 [045]\d|
2199                 [236-9]\d{1,2}
2200               )|
2201               32\d{2}
2202             )|
2203             4(?:
2204               [18]\d{2}|
2205               2(?:
2206                 [2-46]\d{2}|
2207                 3
2208               )|
2209               5[25]\d{2}
2210             )|
2211             5(?:
2212               1\d{2}|
2213               2(?:
2214                 3\d|
2215                 5
2216               )
2217             )|
2218             6(?:
2219               [18]\d{2}|
2220               2(?:
2221                 3(?:\d{2})?|
2222                 [46]\d{1,2}|
2223                 5\d{2}|
2224                 7\d
2225               )|
2226               5(?:
2227                 3\d?|
2228                 4\d|
2229                 [57]\d{1,2}|
2230                 6\d{2}|
2231                 8
2232               )
2233             )|
2234             71\d{2}|
2235             8(?:
2236               [18]\d{2}|
2237               23\d{2}|
2238               54\d{2}
2239             )|
2240             9(?:
2241               [18]\d{2}|
2242               2[2-5]\d{2}|
2243               53\d{1,2}
2244             )
2245           )\d{3}|
2246           5(?:
2247             02[03489]\d{2}|
2248             1\d{2}|
2249             2(?:
2250               1\d{2}|
2251               2(?:
2252                 2(?:\d{2})?|
2253                 [457]\d{2}
2254               )
2255             )|
2256             3(?:
2257               1\d{2}|
2258               2(?:
2259                 [37](?:\d{2})?|
2260                 [569]\d{2}
2261               )
2262             )|
2263             4(?:
2264               1\d{2}|
2265               2[46]\d{2}
2266             )|
2267             5(?:
2268               1\d{2}|
2269               26\d{1,2}
2270             )|
2271             6(?:
2272               [18]\d{2}|
2273               2|
2274               53\d{2}
2275             )|
2276             7(?:
2277               1|
2278               24
2279             )\d{2}|
2280             8(?:
2281               1|
2282               26
2283             )\d{2}|
2284             91\d{2}
2285           )\d{3}|
2286           6(?:
2287             0(?:
2288               1\d{2}|
2289               2(?:
2290                 3\d{2}|
2291                 4\d{1,2}
2292               )
2293             )|
2294             2(?:
2295               2[2-5]\d{2}|
2296               5(?:
2297                 [3-5]\d{2}|
2298                 7
2299               )|
2300               8\d{2}
2301             )|
2302             3(?:
2303               1|
2304               2[3478]
2305             )\d{2}|
2306             4(?:
2307               1|
2308               2[34]
2309             )\d{2}|
2310             5(?:
2311               1|
2312               2[47]
2313             )\d{2}|
2314             6(?:
2315               [18]\d{2}|
2316               6(?:
2317                 2(?:
2318                   2\d|
2319                   [34]\d{2}
2320                 )|
2321                 5(?:
2322                   [24]\d{2}|
2323                   3\d|
2324                   5\d{1,2}
2325                 )
2326               )
2327             )|
2328             72[2-5]\d{2}|
2329             8(?:
2330               1\d{2}|
2331               2[2-5]\d{2}
2332             )|
2333             9(?:
2334               1\d{2}|
2335               2[2-6]\d{2}
2336             )
2337           )\d{3}|
2338           7(?:
2339             (?:
2340               02|
2341               [3-589]1|
2342               6[12]|
2343               72[24]
2344             )\d{2}|
2345             21\d{3}|
2346             32
2347           )\d{3}|
2348           8(?:
2349             (?:
2350               4[12]|
2351               [5-7]2|
2352               1\d?
2353             )|
2354             (?:
2355               0|
2356               3[12]|
2357               [5-7]1|
2358               217
2359             )\d
2360           )\d{4}|
2361           9(?:
2362             [35]1|
2363             (?:
2364               [024]2|
2365               81
2366             )\d|
2367             (?:
2368               1|
2369               [24]1
2370             )\d{2}
2371           )\d{3}
2372         </nationalNumberPattern>
2373         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
2374         <exampleNumber>27111234</exampleNumber>
2375       </fixedLine>
2376       <mobile>
2377         <!-- Presuming that mobile numbers with the prefixes 66, 37, 44 and 38 must be followed by
2378              numbers [02-9] or they would clash with fixed-line codes. According to the plan, mobile
2379              numbers should be moving to 1[13-9] anyway. -->
2380         <nationalNumberPattern>
2381           (?:
2382             1[13-9]\d|
2383             (?:
2384               3[78]|
2385               44
2386             )[02-9]|
2387             6(?:
2388               44|
2389               6[02-9]
2390             )
2391           )\d{7}
2392         </nationalNumberPattern>
2393         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2394         <exampleNumber>1812345678</exampleNumber>
2395       </mobile>
2396       <tollFree>
2397         <!-- Note: Including Tele-voting numbers here as they are free of charge. -->
2398         <nationalNumberPattern>80[03]\d{7}</nationalNumberPattern>
2399         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2400         <exampleNumber>8001234567</exampleNumber>
2401       </tollFree>
2402       <voip>
2403         <nationalNumberPattern>
2404           96(?:
2405             0[49]|
2406             1[0-4]|
2407             6[69]
2408           )\d{6}
2409         </nationalNumberPattern>
2410         <possibleNumberPattern>\d{10}</possibleNumberPattern>
2411         <exampleNumber>9604123456</exampleNumber>
2412       </voip>
2413       <emergency>
2414         <nationalNumberPattern>
2415           10[0-2]|
2416           999
2417         </nationalNumberPattern>
2418         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2419         <exampleNumber>999</exampleNumber>
2420       </emergency>
2421     </territory>
2422
2423     <!-- Belgium -->
2424     <!-- http://www.bipt.be/en/161/ShowContent/502/Database/Databases.aspx -->
2425     <!-- http://www.telefoonzones.be/ -->
2426     <territory id="BE" countryCode="32" internationalPrefix="00"
2427                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
2428       <availableFormats>
2429         <numberFormat pattern="(4[6-9]\d)(\d{2})(\d{2})(\d{2})">
2430           <leadingDigits>4[6-9]</leadingDigits>
2431           <format>$1 $2 $3 $4</format>
2432         </numberFormat>
2433         <numberFormat pattern="([2-49])(\d{3})(\d{2})(\d{2})">
2434           <leadingDigits>
2435             [23]|
2436             [49][23]
2437           </leadingDigits>
2438           <format>$1 $2 $3 $4</format>
2439         </numberFormat>
2440         <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
2441           <leadingDigits>
2442             [156]|
2443             7[0178]|
2444             8(?:
2445               0[1-9]|
2446               [1-79]
2447             )
2448           </leadingDigits>
2449           <format>$1 $2 $3 $4</format>
2450         </numberFormat>
2451         <numberFormat pattern="([89]\d{2})(\d{2})(\d{3})">
2452           <leadingDigits>
2453             (?:
2454               80|
2455               9
2456             )0
2457           </leadingDigits>
2458           <format>$1 $2 $3</format>
2459         </numberFormat>
2460       </availableFormats>
2461       <generalDesc>
2462         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
2463         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2464       </generalDesc>
2465       <fixedLine>
2466         <!-- Note that 80 is a valid area code, so we explicitly check for this case that the third
2467              digit begins with 1-9 -->
2468         <nationalNumberPattern>
2469           (?:
2470             1[0-69]|
2471             [23][2-8]|
2472             [49][23]|
2473             5\d|
2474             6[013-57-9]|
2475             71
2476           )\d{6}|
2477           8(?:
2478             0[1-9]|
2479             [1-79]\d
2480           )\d{5}
2481         </nationalNumberPattern>
2482         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2483         <exampleNumber>12345678</exampleNumber>
2484       </fixedLine>
2485       <mobile>
2486         <!-- Numbers beginning with 46 outside the ranges allocated by the plan have been included
2487              since many were found online. -->
2488         <nationalNumberPattern>
2489           4(?:
2490             [679]\d|
2491             8[03-9]
2492           )\d{6}
2493         </nationalNumberPattern>
2494         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2495         <exampleNumber>470123456</exampleNumber>
2496       </mobile>
2497       <tollFree>
2498         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2499         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2500         <exampleNumber>80012345</exampleNumber>
2501       </tollFree>
2502       <premiumRate>
2503         <nationalNumberPattern>
2504           (?:
2505             90|
2506             7[07]
2507           )\d{6}
2508         </nationalNumberPattern>
2509         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2510         <exampleNumber>90123456</exampleNumber>
2511       </premiumRate>
2512       <uan>
2513         <!-- Using this for National Rate Services, since
2514              http://www.voipgate.com/site/news/newsflash/new-numbers-available-the-netherlands-and-austria.html
2515              says it will be priced the same as any other national calls. -->
2516         <nationalNumberPattern>78\d{6}</nationalNumberPattern>
2517         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2518         <exampleNumber>78123456</exampleNumber>
2519       </uan>
2520       <emergency>
2521         <nationalNumberPattern>
2522           1(?:
2523             0[01]|
2524             12
2525           )
2526         </nationalNumberPattern>
2527         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2528         <exampleNumber>112</exampleNumber>
2529       </emergency>
2530     </territory>
2531
2532     <!-- Burkina Faso -->
2533     <!-- http://www.itu.int/oth/T0202000021/en -->
2534     <!-- http://www.onatel.bf/onatelsa/plandenumerotation_burkina.pdf -->
2535     <territory id="BF" countryCode="226" internationalPrefix="00">
2536       <availableFormats>
2537         <!-- The national numbering plan from ITU suggests grouping of 2, 2 and 4, but we have
2538              chosen to use the standard from numbers found on the internet instead. -->
2539         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2540           <format>$1 $2 $3 $4</format>
2541         </numberFormat>
2542       </availableFormats>
2543       <generalDesc>
2544         <nationalNumberPattern>[24-7]\d{7}</nationalNumberPattern>
2545         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2546       </generalDesc>
2547       <fixedLine>
2548         <!-- The prefix 50 48 has been added based on numbers found online, while 40 49 has been
2549              deleted since we haven't found any numbers with this prefix and it is not mentioned in
2550              the Onatel document.
2551              IMPORTANT: Note that the ITU documents of Mar/Apr 2013 seem to have major errors in the
2552              fixed-line table, so we have not changed our patterns based on these. -->
2553         <nationalNumberPattern>
2554           (?:
2555             20(?:
2556               49|
2557               5[23]|
2558               9[016-9]
2559             )|
2560             40(?:
2561               4[56]|
2562               5[4-6]|
2563               7[0179]
2564             )|
2565             50[34]\d
2566           )\d{4}
2567         </nationalNumberPattern>
2568         <exampleNumber>20491234</exampleNumber>
2569       </fixedLine>
2570       <mobile>
2571         <nationalNumberPattern>
2572           6(?:
2573             [0-256]\d|
2574             8[0-5]|
2575             3[0-3]|
2576             4[0-4]
2577           )\d{5}|
2578           7\d{7}
2579         </nationalNumberPattern>
2580         <exampleNumber>70123456</exampleNumber>
2581       </mobile>
2582       <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burkina-faso_12217/index.html -->
2583       <emergency>
2584         <nationalNumberPattern>1[78]</nationalNumberPattern>
2585         <possibleNumberPattern>\d{2}</possibleNumberPattern>
2586         <exampleNumber>17</exampleNumber>
2587       </emergency>
2588     </territory>
2589
2590     <!-- Bulgaria -->
2591     <!-- http://www.itu.int/oth/T0202000020/en -->
2592     <territory id="BG" countryCode="359" internationalPrefix="00"
2593                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
2594       <availableFormats>
2595         <!-- Formatting rules follow the conventions seen in web-search results. A space has been
2596              used to separate the area code from the rest of the number, based on sites like
2597              http://www.goldenpages.bg. -->
2598         <numberFormat pattern="(2)(\d{5})">
2599           <leadingDigits>29</leadingDigits>
2600           <format>$1 $2</format>
2601         </numberFormat>
2602         <numberFormat pattern="(2)(\d{3})(\d{3,4})">
2603           <leadingDigits>2</leadingDigits>
2604           <format>$1 $2 $3</format>
2605         </numberFormat>
2606         <numberFormat pattern="(\d{3})(\d{4})">
2607           <leadingDigits>
2608             43[124-7]|
2609             70[1-9]
2610           </leadingDigits>
2611           <format>$1 $2</format>
2612         </numberFormat>
2613         <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
2614           <leadingDigits>
2615             43[124-7]|
2616             70[1-9]
2617           </leadingDigits>
2618           <format>$1 $2 $3</format>
2619         </numberFormat>
2620         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
2621           <leadingDigits>[78]00</leadingDigits>
2622           <format>$1 $2 $3</format>
2623         </numberFormat>
2624         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
2625           <leadingDigits>
2626             [356]|
2627             4[124-7]|
2628             7[1-9]|
2629             8[1-6]|
2630             9[1-7]
2631           </leadingDigits>
2632           <format>$1 $2 $3</format>
2633         </numberFormat>
2634         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
2635           <leadingDigits>
2636             48|
2637             8[7-9]|
2638             9[08]
2639           </leadingDigits>
2640           <format>$1 $2 $3</format>
2641         </numberFormat>
2642       </availableFormats>
2643       <generalDesc>
2644         <nationalNumberPattern>
2645           [23567]\d{5,7}|
2646           [489]\d{6,8}
2647         </nationalNumberPattern>
2648         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
2649       </generalDesc>
2650       <fixedLine>
2651         <!-- 29xxxx numbers have been added because they can be found online, and are typically
2652              used by taxi companies. -->
2653         <nationalNumberPattern>
2654           2(?:
2655             [0-8]\d{5,6}|
2656             9\d{4,6}
2657           )|
2658           (?:
2659             [36]\d|
2660             5[1-9]|
2661             8[1-6]|
2662             9[1-7]
2663           )\d{5,6}|
2664           (?:
2665             4(?:
2666               [124-7]\d|
2667               3[1-6]
2668             )|
2669             7(?:
2670               0[1-9]|
2671               [1-9]\d
2672             )
2673           )\d{4,5}
2674         </nationalNumberPattern>
2675         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
2676         <exampleNumber>2123456</exampleNumber>
2677       </fixedLine>
2678       <mobile>
2679         <nationalNumberPattern>
2680           (?:
2681             8[7-9]|
2682             98
2683           )\d{7}|
2684           4(?:
2685             3[0789]|
2686             8\d
2687           )\d{5}
2688         </nationalNumberPattern>
2689         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2690         <exampleNumber>48123456</exampleNumber>
2691       </mobile>
2692       <tollFree>
2693         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
2694         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2695         <exampleNumber>80012345</exampleNumber>
2696       </tollFree>
2697       <premiumRate>
2698         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
2699         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2700         <exampleNumber>90123456</exampleNumber>
2701       </premiumRate>
2702       <personalNumber>
2703         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
2704         <exampleNumber>70012345</exampleNumber>
2705       </personalNumber>
2706       <emergency>
2707         <nationalNumberPattern>
2708           1(?:
2709             12|
2710             50|
2711             6[06]
2712           )
2713         </nationalNumberPattern>
2714         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2715         <exampleNumber>112</exampleNumber>
2716       </emergency>
2717     </territory>
2718
2719     <!-- Bahrain -->
2720     <!-- http://www.itu.int/oth/T0202000011/en -->
2721     <!-- http://www.tra.org.bh/en/pdf/National_Numbering_Plan_2.pdf -->
2722     <!-- http://www.tra.org.bh/en/marketNumbering.aspx -->
2723     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain -->
2724     <territory id="BH" countryCode="973" internationalPrefix="00">
2725       <availableFormats>
2726         <numberFormat pattern="(\d{4})(\d{4})">
2727           <format>$1 $2</format>
2728         </numberFormat>
2729       </availableFormats>
2730       <generalDesc>
2731         <nationalNumberPattern>[136-9]\d{7}</nationalNumberPattern>
2732         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2733       </generalDesc>
2734       <!-- Universal Service numbers are under both Mobile and Fixed-Line, as they can be assigned
2735            to either. -->
2736       <!-- According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Bahrain, the ranges
2737            "6966-6969, 6996, 6999" are assigned to Rapid. However this contradicts our ranges of
2738            "6966, 6969, 6996-6999". TODO: Investigate this further. -->
2739       <fixedLine>
2740         <nationalNumberPattern>
2741           (?:
2742             1(?:
2743               3[13-6]|
2744               6[0156]|
2745               7\d
2746             )\d|
2747             6(?:
2748               1[16]\d|
2749               6(?:
2750                 0\d|
2751                 3[12]|
2752                 44|
2753                 88
2754               )|
2755               9(?:
2756                 6[69]|
2757                 9[6-9]
2758               )
2759             )|
2760             7(?:
2761               7\d{2}|
2762               178
2763             )
2764           )\d{4}
2765         </nationalNumberPattern>
2766         <exampleNumber>17001234</exampleNumber>
2767       </fixedLine>
2768       <!-- Previously 6644 was assigned to Universal Service, along with 6111, 6160, 6500, 6600,
2769            6688, 6969, 6996, 6999, and 77. These were put under both Mobile and Fixed-Line, as they
2770            could be assigned to either. However, in the new document these are assigned to
2771            Fixed-Line only (with the exception of 6644 which was removed). For now we are keeping
2772            these number in both sections.
2773            Note also that 31 is not listed in the ITU document and could probably be removed.
2774            TODO: Check above ranges and move/remove ranges where necessary.-->
2775       <mobile>
2776         <nationalNumberPattern>
2777           (?:
2778             3(?:
2779               [1-4679]\d|
2780               5[0135]|
2781               8[348]
2782             )\d|
2783             6(?:
2784               1[16]\d|
2785               3(?:
2786                 00|
2787                 33|
2788                 6[16]
2789               )|
2790               500|
2791               6(?:
2792                 [069]\d|
2793                 3[03-9]|
2794                 44|
2795                 88
2796               )|
2797               9(?:
2798                 6[69]|
2799                 9[6-9]
2800               )
2801             )|
2802             77\d{2}
2803           )\d{4}
2804         </nationalNumberPattern>
2805         <exampleNumber>36001234</exampleNumber>
2806       </mobile>
2807       <tollFree>
2808         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
2809         <exampleNumber>80123456</exampleNumber>
2810       </tollFree>
2811       <!-- 87 numbers are "wholly paid by the caller", so they are slotted under premium-rate for
2812            now. -->
2813       <premiumRate>
2814         <nationalNumberPattern>
2815           (?:
2816             87|
2817             9[014578]
2818           )\d{6}
2819         </nationalNumberPattern>
2820         <exampleNumber>90123456</exampleNumber>
2821       </premiumRate>
2822       <sharedCost>
2823         <nationalNumberPattern>84\d{6}</nationalNumberPattern>
2824         <exampleNumber>84123456</exampleNumber>
2825       </sharedCost>
2826       <emergency>
2827         <nationalNumberPattern>999</nationalNumberPattern>
2828         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2829         <exampleNumber>999</exampleNumber>
2830       </emergency>
2831     </territory>
2832
2833     <!-- Burundi -->
2834     <!-- http://www.itu.int/oth/T0202000022/en -->
2835     <territory id="BI" countryCode="257" internationalPrefix="00">
2836       <availableFormats>
2837         <numberFormat
2838           pattern="([27]\d)(\d{2})(\d{2})(\d{2})">
2839           <format>$1 $2 $3 $4</format>
2840         </numberFormat>
2841       </availableFormats>
2842       <generalDesc>
2843         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
2844         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2845       </generalDesc>
2846       <fixedLine>
2847         <nationalNumberPattern>
2848           22(?:
2849             2[0-7]|
2850             [3-5]0
2851           )\d{4}
2852         </nationalNumberPattern>
2853         <exampleNumber>22201234</exampleNumber>
2854       </fixedLine>
2855       <mobile>
2856         <!-- Extra online mobile number prefixes found: 74.
2857              The 29 prefix is listed as a mobile prefix, but many people list it as their fixed home
2858              number. We will keep it as mobile for now, but it may actually be a prefix for fixed
2859              satellite phones. -->
2860         <nationalNumberPattern>
2861           (?:
2862             29|
2863             7[14-9]
2864           )\d{6}
2865         </nationalNumberPattern>
2866         <exampleNumber>79561234</exampleNumber>
2867       </mobile>
2868       <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/burundi_12220/index.html -->
2869       <emergency>
2870         <nationalNumberPattern>11[78]</nationalNumberPattern>
2871         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2872         <exampleNumber>117</exampleNumber>
2873       </emergency>
2874     </territory>
2875
2876     <!-- Benin -->
2877     <!-- http://www.itu.int/oth/T0202000017/en -->
2878     <territory id="BJ" countryCode="229" internationalPrefix="00">
2879       <availableFormats>
2880         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
2881           <format>$1 $2 $3 $4</format>
2882         </numberFormat>
2883         <!-- Numbers beginning with 7 should be formatted as a block. -->
2884       </availableFormats>
2885       <generalDesc>
2886         <nationalNumberPattern>
2887           [2689]\d{7}|
2888           7\d{3}
2889         </nationalNumberPattern>
2890         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
2891       </generalDesc>
2892       <fixedLine>
2893         <!-- These come from the national numbering plan, but have been widened to include other
2894              prefixes found in the yellow pages - specifically 21 0. -->
2895         <nationalNumberPattern>
2896           2(?:
2897             02|
2898             1[037]|
2899             2[45]|
2900             3[68]
2901           )\d{5}
2902         </nationalNumberPattern>
2903         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2904         <exampleNumber>20211234</exampleNumber>
2905       </fixedLine>
2906       <mobile>
2907         <!-- We have restricted the pattern here to the first two digits, as beyond this the data
2908              seems to be no longer accurate. The prefixes 9[46] have also been added, along with
2909              6[67] (seemingly prefixes for Mobile MTN), and 64 for BeninCell. Glo Mobile has been
2910              reported as having prefixes 68 and 9[89]. -->
2911         <nationalNumberPattern>
2912           (?:
2913             6[46-8]|
2914             9[03-9]
2915           )\d{6}
2916         </nationalNumberPattern>
2917         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2918         <exampleNumber>90011234</exampleNumber>
2919       </mobile>
2920       <tollFree>
2921         <nationalNumberPattern>7[3-5]\d{2}</nationalNumberPattern>
2922         <possibleNumberPattern>\d{4}</possibleNumberPattern>
2923         <exampleNumber>7312</exampleNumber>
2924       </tollFree>
2925       <voip>
2926         <nationalNumberPattern>857[58]\d{4}</nationalNumberPattern>
2927         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2928         <exampleNumber>85751234</exampleNumber>
2929       </voip>
2930       <!-- Numbers beginning with 81 are reserved for _either_ free phone or shared-cost (same cost
2931            as a local-call.) We model these as UAN since we have no more detailed information. -->
2932       <uan>
2933         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
2934         <possibleNumberPattern>\d{8}</possibleNumberPattern>
2935         <exampleNumber>81123456</exampleNumber>
2936       </uan>
2937       <emergency>
2938         <nationalNumberPattern>11[78]</nationalNumberPattern>
2939         <possibleNumberPattern>\d{3}</possibleNumberPattern>
2940         <exampleNumber>117</exampleNumber>
2941       </emergency>
2942     </territory>
2943
2944     <!-- Saint Barthélemy, French Antilles -->
2945     <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The
2946          national numbering plan does not specify any St Barthélemy-specific numbering prefixes, but
2947          it appears from searches in online white and yellow pages that a subset of the prefixes
2948          available in these regions are used. In these cases, if getRegionCodeForNumber is used, one
2949          of these region codes will be returned, although numbers will be valid for both regions.
2950          -->
2951     <!-- http://www.itu.int/oth/T0202000058/en -->
2952     <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0">
2953       <!-- Formatting rules borrowed from Guadeloupe. -->
2954       <generalDesc>
2955         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
2956         <possibleNumberPattern>\d{9}</possibleNumberPattern>
2957       </generalDesc>
2958       <fixedLine>
2959         <nationalNumberPattern>
2960           590(?:
2961             2[7-9]|
2962             5[12]|
2963             87
2964           )\d{4}
2965         </nationalNumberPattern>
2966         <exampleNumber>590271234</exampleNumber>
2967       </fixedLine>
2968       <mobile>
2969         <!-- Any ranges assigned from
2970              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
2971              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
2972              them. -->
2973         <nationalNumberPattern>
2974           690(?:
2975             0[0-7]|
2976             [1-9]\d
2977           )\d{4}
2978         </nationalNumberPattern>
2979         <exampleNumber>690301234</exampleNumber>
2980       </mobile>
2981       <!-- http://www.comstbarth.fr/urgences.asp -->
2982       <emergency>
2983         <nationalNumberPattern>18</nationalNumberPattern>
2984         <possibleNumberPattern>\d{2}</possibleNumberPattern>
2985         <exampleNumber>18</exampleNumber>
2986       </emergency>
2987     </territory>
2988
2989     <!-- Bermuda -->
2990     <!-- http://www.itu.int/oth/T0202000018/en -->
2991     <territory id="BM" countryCode="1" leadingDigits="441" nationalPrefix="1"
2992                internationalPrefix="011">
2993       <generalDesc>
2994         <!-- NANPA country - uses US formatting rules -->
2995         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
2996         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
2997       </generalDesc>
2998       <fixedLine>
2999         <nationalNumberPattern>
3000           441(?:
3001             2(?:
3002               02|
3003               23|
3004               61|
3005               [3479]\d
3006             )|
3007             [46]\d{2}|
3008             5(?:
3009               4\d|
3010               60|
3011               89
3012             )|
3013             824
3014           )\d{4}
3015         </nationalNumberPattern>
3016         <exampleNumber>4412345678</exampleNumber>
3017       </fixedLine>
3018       <mobile>
3019         <nationalNumberPattern>
3020           441(?:
3021             [37]\d|
3022             5[0-39]
3023           )\d{5}
3024         </nationalNumberPattern>
3025         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3026         <exampleNumber>4413701234</exampleNumber>
3027       </mobile>
3028       <tollFree>
3029         <nationalNumberPattern>
3030           8(?:
3031             00|
3032             55|
3033             66|
3034             77|
3035             88
3036           )[2-9]\d{6}
3037         </nationalNumberPattern>
3038         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3039         <exampleNumber>8002123456</exampleNumber>
3040       </tollFree>
3041       <premiumRate>
3042         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3043         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3044         <exampleNumber>9002123456</exampleNumber>
3045       </premiumRate>
3046       <personalNumber>
3047         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
3048         <nationalNumberPattern>
3049           5(?:
3050             00|
3051             33|
3052             44
3053           )[2-9]\d{6}
3054         </nationalNumberPattern>
3055         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3056         <exampleNumber>5002345678</exampleNumber>
3057       </personalNumber>
3058       <emergency>
3059         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1067.html -->
3060         <nationalNumberPattern>911</nationalNumberPattern>
3061         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3062         <exampleNumber>911</exampleNumber>
3063       </emergency>
3064     </territory>
3065
3066     <!-- Brunei Darussalam -->
3067     <!-- http://www.itu.int/oth/T020200001F/en -->
3068     <territory id="BN" countryCode="673" internationalPrefix="00">
3069       <!-- Format is from http://aiti.gov.bn/contact.html -->
3070       <availableFormats>
3071         <numberFormat pattern="([2-578]\d{2})(\d{4})">
3072           <format>$1 $2</format>
3073         </numberFormat>
3074       </availableFormats>
3075       <generalDesc>
3076         <nationalNumberPattern>[2-578]\d{6}</nationalNumberPattern>
3077         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3078       </generalDesc>
3079       <fixedLine>
3080         <nationalNumberPattern>[2-5]\d{6}</nationalNumberPattern>
3081         <exampleNumber>2345678</exampleNumber>
3082       </fixedLine>
3083       <mobile>
3084         <nationalNumberPattern>[78]\d{6}</nationalNumberPattern>
3085         <exampleNumber>7123456</exampleNumber>
3086       </mobile>
3087       <emergency>
3088         <!-- http://www.information.gov.bn/VER2/content/view/52/62/ -->
3089         <nationalNumberPattern>99[135]</nationalNumberPattern>
3090         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3091         <exampleNumber>991</exampleNumber>
3092       </emergency>
3093     </territory>
3094
3095     <!-- Bolivia -->
3096     <!-- http://www.itu.int/oth/T020200001A/en -->
3097     <!-- http://www.bolivia.com/Servicios/Plandenumeracion.pdf -->
3098     <territory id="BO" countryCode="591" internationalPrefix="00(1\d)?" nationalPrefix="0"
3099                nationalPrefixForParsing="0(1\d)?" carrierCodeFormattingRule="$NP$CC $FG">
3100       <availableFormats>
3101         <numberFormat pattern="([234])(\d{7})">
3102           <leadingDigits>[234]</leadingDigits>
3103           <format>$1 $2</format>
3104         </numberFormat>
3105         <numberFormat pattern="([67]\d{7})">
3106           <leadingDigits>[67]</leadingDigits>
3107           <format>$1</format>
3108         </numberFormat>
3109       </availableFormats>
3110       <generalDesc>
3111         <nationalNumberPattern>[23467]\d{7}</nationalNumberPattern>
3112         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3113       </generalDesc>
3114       <fixedLine>
3115         <nationalNumberPattern>
3116           (?:
3117             2(?:
3118               2\d{2}|
3119               5(?:11|[258]\d|9[67])|
3120               6(?:12|2\d|9[34])|
3121               8(?:2[34]|39|62)
3122             )|
3123             3(?:
3124               3\d{2}|
3125               4(?:6\d|8[24])|
3126               8(?:25|42|5[257]|86|9[25])|
3127               9(?:2\d|3[234]|4[248]|5[24]|6[2-6]|7\d)
3128             )|
3129             4(?:
3130               4\d{2}|
3131               6(?:11|[24689]\d|72)
3132             )
3133           )\d{4}
3134         </nationalNumberPattern>
3135         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3136         <exampleNumber>22123456</exampleNumber>
3137       </fixedLine>
3138       <mobile>
3139         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
3140         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3141         <exampleNumber>71234567</exampleNumber>
3142       </mobile>
3143       <emergency>
3144         <nationalNumberPattern>11[089]</nationalNumberPattern>
3145         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3146         <exampleNumber>110</exampleNumber>
3147       </emergency>
3148     </territory>
3149
3150     <!-- Bonaire, Sint Eustatius and Saba -->
3151     <!-- http://www.itu.int/oth/T02020000F8/en -->
3152     <territory id="BQ" countryCode="599" internationalPrefix="00">
3153       <!-- Shares formatting patterns with CW. -->
3154       <generalDesc>
3155         <nationalNumberPattern>[347]\d{6}</nationalNumberPattern>
3156         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3157       </generalDesc>
3158       <fixedLine>
3159         <nationalNumberPattern>
3160           (?:
3161             318[023]|
3162             416[0239]|
3163             7(?:
3164               1[578]|
3165               50
3166             )\d
3167           )\d{3}
3168         </nationalNumberPattern>
3169         <exampleNumber>7151234</exampleNumber>
3170       </fixedLine>
3171       <mobile>
3172         <nationalNumberPattern>
3173           (?:
3174             318[1456]|
3175             416[15-8]|
3176             7(?:
3177               0[01]|
3178               [89]\d
3179             )\d
3180           )\d{3}|
3181         </nationalNumberPattern>
3182         <exampleNumber>3181234</exampleNumber>
3183       </mobile>
3184       <emergency>
3185         <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
3186         <nationalNumberPattern>
3187           112|
3188           911
3189         </nationalNumberPattern>
3190         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3191         <exampleNumber>112</exampleNumber>
3192       </emergency>
3193     </territory>
3194
3195     <!-- Brazil -->
3196     <!-- http://en.wikipedia.org/wiki/%2B55 -->
3197     <!-- http://www.itu.int/oth/T020200001D/en -->
3198     <territory id="BR" countryCode="55"
3199                internationalPrefix="00(?:1[45]|2[135]|[34]1|43)"
3200                nationalPrefix="0"
3201                nationalPrefixForParsing="0(?:(1[245]|2[135]|[34]1)(\d{10,11}))?"
3202                nationalPrefixTransformRule="$2">
3203       <!-- The national prefix for parsing here also contains a capturing group for the main number,
3204            since the carrier codes here may also be area codes, so we want to check the length of
3205            the number after capturing. We also need a nationalTransformRule to repopulate with the
3206            number without the carrier code. -->
3207       <availableFormats>
3208         <!-- Numbers can be dialled without an area code on mobile phones in Brazil. The first two
3209              rules here handle this case. The leading digits pattern must be specific enough such
3210              that it doesn't match X00 numbers (e.g. toll-free). -->
3211         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{4})">
3212           <leadingDigits>
3213             [2-9](?:
3214               [1-9]|
3215               0[1-9]
3216             )
3217           </leadingDigits>
3218           <format>$1-$2</format>
3219           <intlFormat>NA</intlFormat>
3220         </numberFormat>
3221         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{5})(\d{4})">
3222           <leadingDigits>
3223             9(?:
3224               [1-9]|
3225               0[1-9]
3226             )
3227           </leadingDigits>
3228           <format>$1-$2</format>
3229           <intlFormat>NA</intlFormat>
3230         </numberFormat>
3231         <!-- Format short numbers as a block. -->
3232         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{3,5})">
3233           <leadingDigits>1[125689]</leadingDigits>
3234           <format>$1</format>
3235           <intlFormat>NA</intlFormat>
3236         </numberFormat>
3237         <numberFormat nationalPrefixFormattingRule="($FG)"
3238             pattern="(\d{2})(\d{5})(\d{4})"
3239             carrierCodeFormattingRule="$NP $CC ($FG)">
3240           <leadingDigits>
3241             (?:
3242               1[1-9]|
3243               2[12478]
3244             )9
3245           </leadingDigits>
3246           <format>$1 $2-$3</format>
3247         </numberFormat>
3248         <numberFormat nationalPrefixFormattingRule="($FG)"
3249             pattern="(\d{2})(\d{4})(\d{4})"
3250             carrierCodeFormattingRule="$NP $CC ($FG)">
3251           <leadingDigits>[1-9][1-9]</leadingDigits>
3252           <format>$1 $2-$3</format>
3253         </numberFormat>
3254         <numberFormat pattern="([34]00\d)(\d{4})">
3255           <leadingDigits>[34]00</leadingDigits>
3256           <format>$1-$2</format>
3257         </numberFormat>
3258         <numberFormat nationalPrefixFormattingRule="$NP$FG"
3259             pattern="([3589]00)(\d{2,3})(\d{4})">
3260           <leadingDigits>[3589]00</leadingDigits>
3261           <format>$1 $2 $3</format>
3262         </numberFormat>
3263       </availableFormats>
3264       <generalDesc>
3265         <nationalNumberPattern>
3266           [1-46-9]\d{7,10}|
3267           5\d{8,9}
3268         </nationalNumberPattern>
3269         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
3270       </generalDesc>
3271       <noInternationalDialling>
3272         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3273         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3274         <exampleNumber>40041234</exampleNumber>
3275       </noInternationalDialling>
3276       <fixedLine>
3277         <!-- According to this publication, the prefixes 11 53, 11 54 and 11 57 are to be used for
3278              mobile phones prior to the introduction of a ninth digit. It is not clear whether they
3279              are still valid as fixed-line numbers, so we are leaving them here in the meantime:
3280              http://www.anatel.gov.br/Portal/exibirPortalNoticias.do?acao=carregaNoticia&codigo=22406
3281              -->
3282         <nationalNumberPattern>
3283           1[1-9][2-5]\d{7}|
3284           (?:
3285             [4689][1-9]|
3286             2[12478]|
3287             3[1-578]|
3288             5[13-5]|
3289             7[13-579]
3290           )[2-5]\d{7}
3291         </nationalNumberPattern>
3292         <exampleNumber>1123456789</exampleNumber>
3293       </fixedLine>
3294       <!--  Also includes the new 11-digit mobile numbers that are being rolled out since 2012,
3295             which are added at the end. -->
3296       <mobile>
3297         <nationalNumberPattern>
3298           1(?:
3299             1(?:
3300               5[347]|
3301               [6-9]\d|
3302             )|
3303             [2-9][6-9]\d
3304           )\d{6}|
3305           (?:
3306             2[12478]|
3307             3[1-578]|
3308             [4689][1-9]|
3309             5[13-5]|
3310             7[13-579]
3311           )[6-9]\d{7}|
3312           (?:
3313             1(?:
3314               19\d|
3315               [2-9]9[6-9]
3316             )|
3317             2[12478]9[6-9]
3318           )\d{7}
3319         </nationalNumberPattern>
3320         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3321         <exampleNumber>1161234567</exampleNumber>
3322       </mobile>
3323       <tollFree>
3324         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
3325         <exampleNumber>800123456</exampleNumber>
3326       </tollFree>
3327       <premiumRate>
3328         <nationalNumberPattern>[359]00\d{6,7}</nationalNumberPattern>
3329         <exampleNumber>300123456</exampleNumber>
3330       </premiumRate>
3331       <sharedCost>
3332         <nationalNumberPattern>[34]00\d{5}</nationalNumberPattern>
3333         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3334         <exampleNumber>40041234</exampleNumber>
3335       </sharedCost>
3336       <emergency>
3337         <nationalNumberPattern>
3338           1(?:
3339             12|
3340             28|
3341             9[023]
3342           )|
3343           911
3344         </nationalNumberPattern>
3345         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3346         <exampleNumber>190</exampleNumber>
3347       </emergency>
3348     </territory>
3349
3350     <!-- Bahamas -->
3351     <!-- http://www.itu.int/oth/T0202000010/en -->
3352     <territory id="BS" countryCode="1" leadingDigits="242" nationalPrefix="1"
3353                internationalPrefix="011">
3354       <generalDesc>
3355         <!-- NANPA country - uses US formatting rules -->
3356         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
3357         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3358       </generalDesc>
3359       <fixedLine>
3360         <nationalNumberPattern>
3361           242(?:
3362             3(?:
3363               02|
3364               [236][1-9]|
3365               4[0-24-9]|
3366               5[0-68]|
3367               7[3467]|
3368               8[0-4]|
3369               9[2-467]
3370             )|
3371             461|
3372             502|
3373             6(?:
3374               12|
3375               7[67]|
3376               8[78]|
3377               9[89]
3378             )|
3379             702
3380           )\d{4}
3381         </nationalNumberPattern>
3382         <exampleNumber>2423456789</exampleNumber>
3383       </fixedLine>
3384       <mobile>
3385         <nationalNumberPattern>
3386           242(?:
3387             3(?:
3388               5[79]|
3389               [79]5
3390             )|
3391             4(?:
3392               [2-4][1-9]|
3393               5[1-8]|
3394               6[2-8]|
3395               7\d|
3396               81
3397             )|
3398             5(?:
3399               2[45]|
3400               3[35]|
3401               44|
3402               5[1-9]|
3403               65|
3404               77
3405             )|
3406             6[34]6|
3407             727
3408           )\d{4}
3409         </nationalNumberPattern>
3410         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3411         <exampleNumber>2423591234</exampleNumber>
3412       </mobile>
3413       <tollFree>
3414         <!-- 242 300 is a Domestic Toll Free service. -->
3415         <nationalNumberPattern>
3416           242300\d{4}|
3417           8(?:
3418             00|
3419             55|
3420             66|
3421             77|
3422             88
3423           )[2-9]\d{6}
3424         </nationalNumberPattern>
3425         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3426         <exampleNumber>8002123456</exampleNumber>
3427       </tollFree>
3428       <premiumRate>
3429         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3430         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3431         <exampleNumber>9002123456</exampleNumber>
3432       </premiumRate>
3433       <personalNumber>
3434         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
3435         <nationalNumberPattern>
3436           5(?:
3437             00|
3438             33|
3439             44
3440           )[2-9]\d{6}
3441         </nationalNumberPattern>
3442         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3443         <exampleNumber>5002345678</exampleNumber>
3444       </personalNumber>
3445       <emergency>
3446         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_989.html -->
3447         <nationalNumberPattern>91[19]</nationalNumberPattern>
3448         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3449         <exampleNumber>911</exampleNumber>
3450       </emergency>
3451     </territory>
3452
3453     <!-- Bhutan -->
3454     <!-- http://www.itu.int/oth/T0202000019/en -->
3455     <territory id="BT" countryCode="975" internationalPrefix="00">
3456       <availableFormats>
3457         <!-- Format is from
3458              http://www.tourism.gov.bt/tour-operators/bhutan-abbot-tours-and-travels.html -->
3459         <numberFormat pattern="([17]7)(\d{2})(\d{2})(\d{2})">
3460           <leadingDigits>
3461             1|
3462             77
3463           </leadingDigits>
3464           <format>$1 $2 $3 $4</format>
3465         </numberFormat>
3466         <numberFormat pattern="([2-8])(\d{3})(\d{3})">
3467           <leadingDigits>
3468             [2-68]|
3469             7[246]
3470           </leadingDigits>
3471           <format>$1 $2 $3</format>
3472         </numberFormat>
3473       </availableFormats>
3474       <generalDesc>
3475         <nationalNumberPattern>[1-8]\d{6,7}</nationalNumberPattern>
3476         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
3477       </generalDesc>
3478       <fixedLine>
3479         <nationalNumberPattern>
3480           (?:
3481             2[3-6]|
3482             [34][5-7]|
3483             5[236]|
3484             6[2-46]|
3485             7[246]|
3486             8[2-4]
3487           )\d{5}
3488         </nationalNumberPattern>
3489         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
3490         <exampleNumber>2345678</exampleNumber>
3491       </fixedLine>
3492       <mobile>
3493         <!-- The 77 prefix is not yet in the ITU document but numbers online indicate this prefix
3494              is in use. -->
3495         <nationalNumberPattern>[17]7\d{6}</nationalNumberPattern>
3496         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3497         <exampleNumber>17123456</exampleNumber>
3498       </mobile>
3499       <emergency>
3500         <!-- http://www.rbp.gov.bt/requestpolice.php -->
3501         <!-- http://www.jdwnrh.gov.bt/sfo2011/?page_id=51 -->
3502         <nationalNumberPattern>11[023]</nationalNumberPattern>
3503         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3504         <exampleNumber>113</exampleNumber>
3505       </emergency>
3506       <!-- No information on other types of phone numbers for Bhutan has been found. -->
3507     </territory>
3508
3509     <!-- Botswana -->
3510     <!-- http://www.itu.int/oth/T020200001C/en -->
3511     <territory id="BW" countryCode="267" internationalPrefix="00">
3512       <availableFormats>
3513         <numberFormat pattern="(\d{3})(\d{4})">
3514           <leadingDigits>[2-6]</leadingDigits>
3515           <format>$1 $2</format>
3516         </numberFormat>
3517         <numberFormat pattern="(7\d)(\d{3})(\d{3})">
3518           <leadingDigits>7</leadingDigits>
3519           <format>$1 $2 $3</format>
3520         </numberFormat>
3521         <numberFormat pattern="(90)(\d{5})">
3522           <leadingDigits>9</leadingDigits>
3523           <format>$1 $2</format>
3524         </numberFormat>
3525       </availableFormats>
3526       <generalDesc>
3527         <nationalNumberPattern>[2-79]\d{6,7}</nationalNumberPattern>
3528         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
3529       </generalDesc>
3530       <fixedLine>
3531         <nationalNumberPattern>
3532           (?:
3533             2(?:
3534               4[0-48]|
3535               6[0-24]|
3536               9[0578]
3537             )|
3538             3(?:
3539               1[0235-9]|
3540               55|
3541               6\d|
3542               7[01]|
3543               9[0-57]
3544             )|
3545             4(?:
3546               6[03]|
3547               7[1267]|
3548               9[0-5]
3549             )|
3550             5(?:
3551               3[0389]|
3552               4[0489]|
3553               7[1-47]|
3554               88|
3555               9[0-49]
3556             )|
3557             6(?:
3558               2[1-35]|
3559               5[149]|
3560               8[067]
3561             )
3562           )\d{4}
3563         </nationalNumberPattern>
3564         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3565         <exampleNumber>2401234</exampleNumber>
3566       </fixedLine>
3567       <mobile>
3568         <!-- 77[01] has been added after numbers in use have been seen online. -->
3569         <nationalNumberPattern>
3570           7(?:
3571             [1-35]\d{6}|
3572             [46][0-7]\d{5}|
3573             7[01]\d{5}
3574           )
3575         </nationalNumberPattern>
3576         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3577         <exampleNumber>71123456</exampleNumber>
3578       </mobile>
3579       <!-- No reliable information about toll-free numbers can be found; many are written on the
3580            internet like 0800 123 456, but this is not supported by any documentation and no
3581            numbers can be found that actually work. -->
3582       <premiumRate>
3583         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
3584         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3585         <exampleNumber>9012345</exampleNumber>
3586       </premiumRate>
3587       <voip>
3588         <nationalNumberPattern>79[12][01]\d{4}</nationalNumberPattern>
3589         <possibleNumberPattern>\d{8}</possibleNumberPattern>
3590         <exampleNumber>79101234</exampleNumber>
3591       </voip>
3592       <emergency>
3593         <!-- http://www.gov.bw/en/Ministries%2D%2DAuthorities/Ministries/State-President/Botswana-Police-Service-/About-the-BPS/Toll-Free-Numbers/ -->
3594         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1071.html -->
3595         <nationalNumberPattern>99[789]</nationalNumberPattern>
3596         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3597         <exampleNumber>999</exampleNumber>
3598       </emergency>
3599     </territory>
3600
3601     <!-- Belarus -->
3602     <!-- http://www.eng.beltelecom.by/en/subscribers/phone-codes -->
3603     <!-- Information on national prefix provided by a Belarussian person. -->
3604     <territory id="BY" countryCode="375" preferredInternationalPrefix="8~10"
3605                internationalPrefix="810" nationalPrefixForParsing="8?0?"
3606                nationalPrefix="8">
3607       <availableFormats>
3608         <numberFormat nationalPrefixFormattingRule="$NP 0$FG"
3609           pattern="([1-4]\d)(\d{3})(\d{4})">
3610           <leadingDigits>[1-4]</leadingDigits>
3611           <format>$1 $2 $3</format>
3612         </numberFormat>
3613         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3614           pattern="([89]\d{2})(\d{3})(\d{4})">
3615           <leadingDigits>
3616             8[01]|
3617             9
3618           </leadingDigits>
3619           <format>$1 $2 $3</format>
3620         </numberFormat>
3621         <numberFormat nationalPrefixFormattingRule="$NP $FG"
3622           pattern="(8\d{2})(\d{4})(\d{4})">
3623           <leadingDigits>82</leadingDigits>
3624           <format>$1 $2 $3</format>
3625         </numberFormat>
3626       </availableFormats>
3627       <generalDesc>
3628         <nationalNumberPattern>
3629           [1-4]\d{8}|
3630           [89]\d{9,10}
3631         </nationalNumberPattern>
3632         <!-- Numbers are often written without the city code. -->
3633         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
3634       </generalDesc>
3635       <!-- Toll-free and premium rate numbers are not available from abroad. -->
3636       <noInternationalDialling>
3637         <nationalNumberPattern>
3638           8(?:
3639             [01]|
3640             20
3641           )\d{8}|
3642           902\d{7}
3643         </nationalNumberPattern>
3644         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3645         <exampleNumber>82012345678</exampleNumber>
3646       </noInternationalDialling>
3647       <fixedLine>
3648         <nationalNumberPattern>
3649           (?:
3650             1(?:
3651               5(?:
3652                 1[1-5]|
3653                 2\d|
3654                 6[2-4]|
3655                 9[1-7]
3656               )|
3657               6(?:
3658                 [235]\d|
3659                 4[1-7]
3660               )|
3661               7\d{2}
3662             )|
3663             2(?:
3664               1(?:
3665                 [246]\d|
3666                 3[0-35-9]|
3667                 5[1-9]
3668               )|
3669               2(?:
3670                 [235]\d|
3671                 4[0-8]
3672               )|
3673               3(?:
3674                 2\d|
3675                 3[02-79]|
3676                 4[024-7]|
3677                 5[0-7]
3678               )
3679             )
3680           )\d{5}
3681         </nationalNumberPattern>
3682         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
3683         <!-- Using test number for Grodno from the plan. -->
3684         <exampleNumber>152450911</exampleNumber>
3685       </fixedLine>
3686       <mobile>
3687         <nationalNumberPattern>
3688           (?:
3689             2(?:
3690               5[5679]|
3691               9[1-9]
3692             )|
3693             33\d|
3694             44\d
3695           )\d{6}
3696         </nationalNumberPattern>
3697         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3698         <!-- Using test number for BelCel from the plan. -->
3699         <exampleNumber>294911911</exampleNumber>
3700       </mobile>
3701       <tollFree>
3702         <!-- Putting Interactive Polling Service (free) here too. -->
3703         <nationalNumberPattern>
3704           8(?:
3705             0[13]|
3706             20\d
3707           )\d{7}
3708         </nationalNumberPattern>
3709         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
3710         <exampleNumber>8011234567</exampleNumber>
3711       </tollFree>
3712       <premiumRate>
3713         <!-- Putting Interactive Polling Service (paid) here too. -->
3714         <nationalNumberPattern>
3715           (?:
3716             810|
3717             902
3718           )\d{7}
3719         </nationalNumberPattern>
3720         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3721         <exampleNumber>9021234567</exampleNumber>
3722       </premiumRate>
3723       <emergency>
3724         <nationalNumberPattern>
3725           1(?:
3726             0[123]|
3727             12
3728           )
3729         </nationalNumberPattern>
3730         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3731         <exampleNumber>112</exampleNumber>
3732       </emergency>
3733     </territory>
3734
3735     <!-- Belize -->
3736     <!-- http://www.itu.int/oth/T0202000016/en -->
3737     <!-- The trunk prefix, formally 0, was dropped in the last reorganisation of the numbering plan.
3738          -->
3739     <territory id="BZ" countryCode="501" internationalPrefix="00" leadingZeroPossible="true">
3740       <availableFormats>
3741         <numberFormat pattern="(\d{3})(\d{4})">
3742           <leadingDigits>[2-8]</leadingDigits>
3743           <!-- Adding hyphen following the Belize Telemedia formatting rules. -->
3744           <format>$1-$2</format>
3745         </numberFormat>
3746         <numberFormat pattern="(0)(800)(\d{4})(\d{3})">
3747           <leadingDigits>0</leadingDigits>
3748           <format>$1-$2-$3-$4</format>
3749         </numberFormat>
3750       </availableFormats>
3751       <generalDesc>
3752         <nationalNumberPattern>
3753           [2-8]\d{6}|
3754           0\d{10}
3755         </nationalNumberPattern>
3756         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
3757       </generalDesc>
3758       <fixedLine>
3759         <nationalNumberPattern>[234578][02]\d{5}</nationalNumberPattern>
3760         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3761         <exampleNumber>2221234</exampleNumber>
3762       </fixedLine>
3763       <mobile>
3764         <!-- 62[6-9], 63X and 6[67][2-9] were added as we have been able to successfully send SMSs
3765              to these numbers or many numbers have been found online. -->
3766         <nationalNumberPattern>6[0-367]\d{5}</nationalNumberPattern>
3767         <possibleNumberPattern>\d{7}</possibleNumberPattern>
3768         <exampleNumber>6221234</exampleNumber>
3769       </mobile>
3770       <!-- We don't know how these would be dialled internationally - it is possible that they can't
3771            be dialled internationally at all - so we represent the leading 0 as part of the number.
3772            Information from www.belizetelemedia.net. -->
3773       <tollFree>
3774         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
3775         <possibleNumberPattern>\d{11}</possibleNumberPattern>
3776         <exampleNumber>08001234123</exampleNumber>
3777       </tollFree>
3778       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
3779       <emergency>
3780         <nationalNumberPattern>
3781           9(?:
3782             0|
3783             11
3784           )
3785           </nationalNumberPattern>
3786         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
3787         <exampleNumber>911</exampleNumber>
3788       </emergency>
3789     </territory>
3790
3791     <!-- Canada -->
3792     <!-- http://www.cnac.ca/canadian_dial_plan/canadian_dial_plan.htm -->
3793     <territory id="CA" countryCode="1" internationalPrefix="011" nationalPrefix="1">
3794       <generalDesc>
3795         <!-- NANPA country - uses US formatting rules -->
3796         <nationalNumberPattern>
3797           [2-9]\d{9}|
3798           3\d{6}
3799         </nationalNumberPattern>
3800         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
3801       </generalDesc>
3802       <fixedLine>
3803         <nationalNumberPattern>
3804           (?:
3805             2(?:
3806               04|
3807               [23]6|
3808               [48]9|
3809               50
3810             )|
3811             3(?:
3812               06|
3813               43|
3814               65
3815             )|
3816             4(?:
3817               03|
3818               1[68]|
3819               3[178]|
3820               5[06]
3821             )|
3822             5(?:
3823               0[06]|
3824               1[49]|
3825               79|
3826               8[17]
3827             )|
3828             6(?:
3829               0[04]|
3830               13|
3831               39|
3832               47
3833             )|
3834             7(?:
3835               0[059]|
3836               80|
3837               78
3838             )|
3839             8(?:
3840               [06]7|
3841               19|
3842               73
3843             )|
3844             90[25]
3845           )[2-9]\d{6}|
3846           310\d{4}
3847         </nationalNumberPattern>
3848         <exampleNumber>2042345678</exampleNumber>
3849       </fixedLine>
3850       <mobile>
3851         <nationalNumberPattern>
3852           (?:
3853             2(?:
3854               04|
3855               [23]6|
3856               [48]9|
3857               50
3858             )|
3859             3(?:
3860               06|
3861               43|
3862               65
3863             )|
3864             4(?:
3865               03|
3866               1[68]|
3867               3[178]|
3868               5[06]
3869             )|
3870             5(?:
3871               0[06]|
3872               1[49]|
3873               79|
3874               8[17]
3875             )|
3876             6(?:
3877               0[04]|
3878               13|
3879               39|
3880               47
3881             )|
3882             7(?:
3883               0[059]|
3884               80|
3885               78
3886             )|
3887             8(?:
3888               [06]7|
3889               19|
3890               73
3891             )|
3892             90[25]
3893           )[2-9]\d{6}
3894         </nationalNumberPattern>
3895         <exampleNumber>2042345678</exampleNumber>
3896       </mobile>
3897       <tollFree>
3898         <nationalNumberPattern>
3899           8(?:
3900             00|
3901             55|
3902             66|
3903             77|
3904             88
3905           )[2-9]\d{6}|
3906           310\d{4}
3907         </nationalNumberPattern>
3908         <exampleNumber>8002123456</exampleNumber>
3909       </tollFree>
3910       <premiumRate>
3911         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
3912         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3913         <exampleNumber>9002123456</exampleNumber>
3914       </premiumRate>
3915       <personalNumber>
3916         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
3917         <nationalNumberPattern>
3918           5(?:
3919             00|
3920             33|
3921             44
3922           )[2-9]\d{6}
3923         </nationalNumberPattern>
3924         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3925         <exampleNumber>5002345678</exampleNumber>
3926       </personalNumber>
3927       <emergency>
3928         <nationalNumberPattern>
3929           112|
3930           911
3931         </nationalNumberPattern>
3932         <possibleNumberPattern>\d{3}</possibleNumberPattern>
3933         <exampleNumber>911</exampleNumber>
3934       </emergency>
3935     </territory>
3936
3937     <!-- Cocos Islands -->
3938     <!-- Metadata shared with Australia. -->
3939     <!-- References state Cocos Islands have fixed line numbers starting +61 8 9162. -->
3940     <!-- http://en.wikipedia.org/wiki/List_of_country_calling_codes -->
3941     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
3942     <territory id="CC" countryCode="61" preferredInternationalPrefix="0011"
3943                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
3944                nationalPrefix="0">
3945       <!-- Uses AU formatting rules. -->
3946       <!-- General desc and fixed line rules different from Australia. -->
3947       <generalDesc>
3948         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
3949         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3950       </generalDesc>
3951       <fixedLine>
3952         <nationalNumberPattern>89162\d{4}</nationalNumberPattern>
3953         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
3954         <exampleNumber>891621234</exampleNumber>
3955       </fixedLine>
3956       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
3957       <mobile>
3958         <nationalNumberPattern>
3959           4(?:
3960             [0-2]\d|
3961             3[0-57-9]|
3962             4[47-9]|
3963             5[0-37-9]|
3964             6[6-9]|
3965             7[07-9]|
3966             8[7-9]
3967           )\d{6}
3968         </nationalNumberPattern>
3969         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3970         <exampleNumber>412345678</exampleNumber>
3971       </mobile>
3972       <tollFree>
3973         <nationalNumberPattern>
3974           1(?:
3975             80(?:
3976               0\d{2}
3977             )?|
3978             3(?:
3979               00\d{2}
3980             )?
3981           )\d{4}
3982         </nationalNumberPattern>
3983         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
3984         <exampleNumber>1800123456</exampleNumber>
3985       </tollFree>
3986       <premiumRate>
3987         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
3988         <possibleNumberPattern>\d{10}</possibleNumberPattern>
3989         <exampleNumber>1900123456</exampleNumber>
3990       </premiumRate>
3991       <personalNumber>
3992         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
3993         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3994         <exampleNumber>500123456</exampleNumber>
3995       </personalNumber>
3996       <voip>
3997         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
3998         <possibleNumberPattern>\d{9}</possibleNumberPattern>
3999         <exampleNumber>550123456</exampleNumber>
4000       </voip>
4001       <emergency>
4002         <!-- We assume this is the same as for Australia, since they have the same country code and
4003              share their police force, and no better information can be found. -->
4004         <nationalNumberPattern>
4005           000|
4006           112
4007         </nationalNumberPattern>
4008         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4009         <exampleNumber>112</exampleNumber>
4010       </emergency>
4011     </territory>
4012
4013     <!-- Congo, Dem. Rep. of the (formerly Zaire) -->
4014     <!-- http://www.itu.int/oth/T0202000037/en -->
4015     <territory id="CD" countryCode="243" internationalPrefix="00"
4016                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
4017       <availableFormats>
4018         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
4019           <leadingDigits>12</leadingDigits>
4020           <format>$1 $2 $3</format>
4021         </numberFormat>
4022         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4023           <leadingDigits>
4024             8[0-2459]|
4025             9
4026           </leadingDigits>
4027           <format>$1 $2 $3</format>
4028         </numberFormat>
4029         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
4030           <leadingDigits>88</leadingDigits>
4031           <format>$1 $2 $3</format>
4032         </numberFormat>
4033         <numberFormat pattern="(\d{2})(\d{5})">
4034           <leadingDigits>[1-6]</leadingDigits>
4035           <format>$1 $2</format>
4036         </numberFormat>
4037       </availableFormats>
4038       <generalDesc>
4039         <nationalNumberPattern>
4040           [2-6]\d{6}|
4041           [18]\d{6,8}|
4042           9\d{8}
4043         </nationalNumberPattern>
4044         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
4045       </generalDesc>
4046       <fixedLine>
4047         <nationalNumberPattern>
4048           1(?:
4049             2\d{7}|
4050             \d{6}
4051           )|
4052           [2-6]\d{6}
4053         </nationalNumberPattern>
4054         <exampleNumber>1234567</exampleNumber>
4055       </fixedLine>
4056       <mobile>
4057         <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma
4058              Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the
4059              holdings company http://www.timeturnsholdings.com/products does not show a link for
4060              DRC. While there are still numbers of the form "88\d{5}" online, none of the ones
4061              tried were valid. If the holdings company does not respond to requests about this
4062              range and unless we receive further information, we will remove this range. -->
4063         <nationalNumberPattern>
4064           8(?:
4065             [0-2459]\d{2}|
4066             8
4067           )\d{5}|
4068           9[7-9]\d{7}
4069         </nationalNumberPattern>
4070         <exampleNumber>991234567</exampleNumber>
4071       </mobile>
4072       <!-- No national emergency numbers were located for Congo. -->
4073     </territory>
4074
4075     <!-- Central African Republic -->
4076     <!-- http://www.itu.int/oth/T0202000028/en -->
4077     <territory id="CF" countryCode="236" internationalPrefix="00">
4078       <availableFormats>
4079         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4080           <format>$1 $2 $3 $4</format>
4081         </numberFormat>
4082       </availableFormats>
4083       <generalDesc>
4084         <nationalNumberPattern>[278]\d{7}</nationalNumberPattern>
4085         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4086       </generalDesc>
4087       <fixedLine>
4088         <nationalNumberPattern>2[12]\d{6}</nationalNumberPattern>
4089         <exampleNumber>21612345</exampleNumber>
4090       </fixedLine>
4091       <mobile>
4092         <nationalNumberPattern>7[0257]\d{6}</nationalNumberPattern>
4093         <exampleNumber>70012345</exampleNumber>
4094       </mobile>
4095       <premiumRate>
4096         <nationalNumberPattern>8776\d{4}</nationalNumberPattern>
4097         <exampleNumber>87761234</exampleNumber>
4098       </premiumRate>
4099       <!-- No emergency numbers information can be found. -->
4100     </territory>
4101
4102     <!-- Congo (Rep. of the) (Brazzaville) -->
4103     <!-- http://www.itu.int/oth/T020200002E/en -->
4104     <territory id="CG" countryCode="242" internationalPrefix="00" leadingZeroPossible="true">
4105       <availableFormats>
4106         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
4107           <leadingDigits>[02]</leadingDigits>
4108           <format>$1 $2 $3</format>
4109         </numberFormat>
4110         <numberFormat pattern="(\d)(\d{4})(\d{4})">
4111           <leadingDigits>8</leadingDigits>
4112           <format>$1 $2 $3</format>
4113         </numberFormat>
4114       </availableFormats>
4115       <generalDesc>
4116         <nationalNumberPattern>[028]\d{8}</nationalNumberPattern>
4117         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4118       </generalDesc>
4119       <fixedLine>
4120         <nationalNumberPattern>222[1-589]\d{5}</nationalNumberPattern>
4121         <exampleNumber>222123456</exampleNumber>
4122       </fixedLine>
4123       <mobile>
4124         <nationalNumberPattern>0[14-6]\d{7}</nationalNumberPattern>
4125         <exampleNumber>061234567</exampleNumber>
4126       </mobile>
4127       <!-- Referred to as a "Green number" in the telephone plan. -->
4128       <tollFree>
4129         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4130         <exampleNumber>800123456</exampleNumber>
4131       </tollFree>
4132       <!-- No emergency numbers information can be found. -->
4133     </territory>
4134
4135     <!-- Switzerland -->
4136     <!-- http://www.bakom.admin.ch/themen/telekom/00479/00604/index.html?lang=en
4137          under Technical prescriptions: Numbering plan for international carriers -->
4138     <territory id="CH" countryCode="41" internationalPrefix="00"
4139                nationalPrefix="0"  nationalPrefixFormattingRule="$NP$FG">
4140       <availableFormats>
4141         <numberFormat pattern="([2-9]\d)(\d{3})(\d{2})(\d{2})">
4142           <leadingDigits>
4143             [2-7]|
4144             [89]1
4145           </leadingDigits>
4146           <format>$1 $2 $3 $4</format>
4147         </numberFormat>
4148         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
4149           <leadingDigits>
4150             8[047]|
4151             90
4152           </leadingDigits>
4153           <format>$1 $2 $3</format>
4154         </numberFormat>
4155         <numberFormat pattern="(\d{3})(\d{2})(\d{3})(\d{2})(\d{2})">
4156           <leadingDigits>860</leadingDigits>
4157           <format>$1 $2 $3 $4 $5</format>
4158         </numberFormat>
4159       </availableFormats>
4160       <generalDesc>
4161         <nationalNumberPattern>
4162           [2-9]\d{8}|
4163           860\d{9}
4164         </nationalNumberPattern>
4165         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
4166       </generalDesc>
4167       <fixedLine>
4168         <nationalNumberPattern>
4169           (?:
4170             2[12467]|
4171             3[1-4]|
4172             4[134]|
4173             5[12568]|
4174             6[12]|
4175             [7-9]1
4176           )\d{7}
4177         </nationalNumberPattern>
4178         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4179         <exampleNumber>212345678</exampleNumber>
4180       </fixedLine>
4181       <mobile>
4182         <nationalNumberPattern>7[4-9]\d{7}</nationalNumberPattern>
4183         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4184         <exampleNumber>741234567</exampleNumber>
4185       </mobile>
4186       <tollFree>
4187         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
4188         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4189         <exampleNumber>800123456</exampleNumber>
4190       </tollFree>
4191       <premiumRate>
4192         <nationalNumberPattern>90[016]\d{6}</nationalNumberPattern>
4193         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4194         <exampleNumber>900123456</exampleNumber>
4195       </premiumRate>
4196       <sharedCost>
4197         <nationalNumberPattern>84[0248]\d{6}</nationalNumberPattern>
4198         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4199         <exampleNumber>840123456</exampleNumber>
4200       </sharedCost>
4201       <personalNumber>
4202         <nationalNumberPattern>878\d{6}</nationalNumberPattern>
4203         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4204         <exampleNumber>878123456</exampleNumber>
4205       </personalNumber>
4206       <voicemail>
4207         <nationalNumberPattern>860\d{9}</nationalNumberPattern>
4208         <possibleNumberPattern>\d{12}</possibleNumberPattern>
4209         <exampleNumber>860123456789</exampleNumber>
4210       </voicemail>
4211       <emergency>
4212         <nationalNumberPattern>
4213           1(?:
4214             1[278]|
4215             44
4216           )
4217         </nationalNumberPattern>
4218         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4219         <exampleNumber>112</exampleNumber>
4220       </emergency>
4221     </territory>
4222
4223     <!-- Côte d'Ivoire -->
4224     <!-- http://www.itu.int/oth/T0202000031/en -->
4225     <territory id="CI" countryCode="225" internationalPrefix="00" leadingZeroPossible="true">
4226       <availableFormats>
4227         <!-- Using format from online yellow pages over format implied in national numbering plan.
4228              -->
4229         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
4230           <format>$1 $2 $3 $4</format>
4231         </numberFormat>
4232       </availableFormats>
4233       <generalDesc>
4234         <nationalNumberPattern>[02-6]\d{7}</nationalNumberPattern>
4235         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4236       </generalDesc>
4237       <fixedLine>
4238         <nationalNumberPattern>
4239           (?:
4240             2(?:
4241               0[023]|
4242               1[02357]|
4243               [23][045]|
4244               4[03-5]
4245             )|
4246             3(?:
4247               0[06]|
4248               1[069]|
4249               [2-4][07]|
4250               5[09]|
4251               6[08]
4252             )
4253           )\d{5}
4254         </nationalNumberPattern>
4255         <exampleNumber>21234567</exampleNumber>
4256       </fixedLine>
4257       <mobile>
4258         <!-- Added the prefixes 4[0-2] (Moov), 5[5-9] & 65 because SMS messages have been
4259              successfully delivered. Supported by numbers found on the internet. -->
4260         <nationalNumberPattern>
4261           (?:
4262             0[1-9]|
4263             4[0-24-9]|
4264             5[05-9]|
4265             6[05679]
4266           )\d{6}
4267         </nationalNumberPattern>
4268         <exampleNumber>01234567</exampleNumber>
4269       </mobile>
4270       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
4271       <emergency>
4272         <nationalNumberPattern>
4273           1(?:
4274             1[01]|
4275             [78]0
4276           )
4277         </nationalNumberPattern>
4278         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4279         <exampleNumber>110</exampleNumber>
4280       </emergency>
4281     </territory>
4282
4283     <!-- Cook Islands -->
4284     <!-- http://www.itu.int/oth/T020200002F/en -->
4285     <territory id="CK" countryCode="682" internationalPrefix="00">
4286       <availableFormats>
4287         <numberFormat pattern="(\d{2})(\d{3})">
4288           <format>$1 $2</format>
4289         </numberFormat>
4290       </availableFormats>
4291       <generalDesc>
4292         <nationalNumberPattern>[2-57]\d{4}</nationalNumberPattern>
4293         <possibleNumberPattern>\d{5}</possibleNumberPattern>
4294       </generalDesc>
4295       <fixedLine>
4296         <nationalNumberPattern>
4297           (?:
4298             2\d|
4299             3[13-7]|
4300             4[1-5]
4301           )\d{3}
4302         </nationalNumberPattern>
4303         <exampleNumber>21234</exampleNumber>
4304       </fixedLine>
4305       <mobile>
4306         <nationalNumberPattern>
4307           (?:
4308             5[0-68]|
4309             7\d
4310           )\d{3}
4311         </nationalNumberPattern>
4312         <exampleNumber>71234</exampleNumber>
4313       </mobile>
4314       <emergency>
4315         <!-- http://www.frommers.com/destinations/cookislands/3036020157.html and other tourist
4316              sites agree on the following numbers. -->
4317         <nationalNumberPattern>99[689]</nationalNumberPattern>
4318         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4319         <exampleNumber>998</exampleNumber>
4320       </emergency>
4321     </territory>
4322
4323     <!-- Chile -->
4324     <!-- http://www.itu.int/oth/T020200002A/en -->
4325     <!-- http://en.wikipedia.org/wiki/%2B56 -->
4326     <!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
4327     <territory id="CL" countryCode="56"
4328                internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
4329                nationalPrefix="0"
4330                nationalPrefixForParsing="0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))"
4331                nationalPrefixFormattingRule="$NP$FG">
4332       <!-- When dialling mobile numbers from landlines, or vice versa, you need a prefix of 0, which
4333       we strip here. National destinations may be dialled with a carrier if they are not local so
4334       we extract these carrier codes as well. -->
4335       <availableFormats>
4336         <numberFormat pattern="(2)(\d{3,4})(\d{4})"
4337           nationalPrefixFormattingRule="($FG)"
4338           carrierCodeFormattingRule="$CC ($FG)">
4339           <leadingDigits>2</leadingDigits>
4340           <format>$1 $2 $3</format>
4341         </numberFormat>
4342         <numberFormat pattern="(\d{2})(\d{2,3})(\d{4})"
4343           nationalPrefixFormattingRule="($FG)"
4344           carrierCodeFormattingRule="$CC ($FG)">
4345           <leadingDigits>
4346             [357]|
4347             4[1-35]|
4348             6[13-57]
4349           </leadingDigits>
4350           <format>$1 $2 $3</format>
4351         </numberFormat>
4352         <numberFormat pattern="(9)([5-9]\d{3})(\d{4})">
4353           <leadingDigits>9</leadingDigits>
4354           <format>$1 $2 $3</format>
4355         </numberFormat>
4356         <numberFormat pattern="(44)(\d{3})(\d{4})">
4357           <leadingDigits>44</leadingDigits>
4358           <format>$1 $2 $3</format>
4359         </numberFormat>
4360         <numberFormat nationalPrefixFormattingRule="$FG"
4361           pattern="([68]00)(\d{3})(\d{3,4})">
4362           <leadingDigits>
4363             60|
4364             8
4365           </leadingDigits>
4366           <format>$1 $2 $3</format>
4367         </numberFormat>
4368         <numberFormat nationalPrefixFormattingRule="$FG"
4369           pattern="(600)(\d{3})(\d{2})(\d{3})">
4370           <leadingDigits>60</leadingDigits>
4371           <format>$1 $2 $3 $4</format>
4372         </numberFormat>
4373         <numberFormat nationalPrefixFormattingRule="$FG"
4374           pattern="(1230)(\d{3})(\d{4})">
4375           <leadingDigits>1</leadingDigits>
4376           <format>$1 $2 $3</format>
4377         </numberFormat>
4378       </availableFormats>
4379       <generalDesc>
4380         <nationalNumberPattern>
4381           (?:
4382             [2-9]|
4383             600|
4384             123
4385           )\d{7,8}
4386         </nationalNumberPattern>
4387         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
4388       </generalDesc>
4389       <noInternationalDialling>
4390         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4391         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4392         <exampleNumber>6001234567</exampleNumber>
4393       </noInternationalDialling>
4394       <fixedLine>
4395         <!-- Nov 2012: The prefixing of '2' to all fixed line numbers, which is being rolled
4396              out between October 2012 and June 2013 means that temporarily the regular
4397              expressions for areas will get very messy as some adopt the leading '2' but
4398              others do not. Eventually when the conversion is complete things should simplify
4399              again. Note that area codes 32 or 41 were transitioned in 2007.
4400              IMPORTANT: A literal reading of the transition rules suggest that all numbers get
4401              a '2' prefix, but some numbers are already 7 digits long (but these always start
4402              with a '2'). The prefixing seems almost certain to only apply to 6-digit numbers and
4403              will unify all fixed line numbers to be 9 digits in total. The fact that the new seven
4404              digit numbers currently only start with a '2' is likely to change in the future.
4405              Note also that at some stage it is likely that Santiago numbers (area code '2') will
4406              have a prefix of "2\d" and not "22" (it's like 10 2-digit area codes wrapped into one).
4407              See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
4408                   http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
4409              -->
4410         <nationalNumberPattern>
4411           (?:
4412             [23]2|
4413             41|
4414             58
4415           )\d{7}|
4416           (?:
4417             3[3-5]|
4418             4[235]|
4419             5[1-357]|
4420             6[13-57]|
4421             7[1-35]
4422           )\d{6,7}
4423         </nationalNumberPattern>
4424         <!-- Area codes do not need to be dialled when dialling within the same area, so the
4425              smallest possible number is length 6. -->
4426         <!-- Nov 2012: The prefixing of '2' to all 6-digit fixed line numbers means that while
4427              the maximum possible number length stays as 9, the minimum length will become '7'
4428              when all area codes are migrated. -->
4429         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
4430         <exampleNumber>221234567</exampleNumber>
4431       </fixedLine>
4432       <mobile>
4433         <nationalNumberPattern>9[5-9]\d{7}</nationalNumberPattern>
4434         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
4435         <exampleNumber>961234567</exampleNumber>
4436       </mobile>
4437       <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
4438            from a definitive source. -->
4439       <tollFree>
4440         <!-- 1230 numbers are used by Visa/Mastercard helplines in Chile -->
4441         <nationalNumberPattern>
4442           800\d{6}|
4443           1230\d{7}
4444         </nationalNumberPattern>
4445         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
4446         <exampleNumber>800123456</exampleNumber>
4447       </tollFree>
4448       <sharedCost>
4449         <!-- http://empresa.movistar.cl/nuestros_productos/soluciones_telefonia_ip/servicios/servicio_600.php -->
4450         <nationalNumberPattern>600\d{7,8}</nationalNumberPattern>
4451         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
4452         <exampleNumber>6001234567</exampleNumber>
4453       </sharedCost>
4454       <voip>
4455         <nationalNumberPattern>44\d{7}</nationalNumberPattern>
4456         <possibleNumberPattern>\d{9}</possibleNumberPattern>
4457         <exampleNumber>441234567</exampleNumber>
4458       </voip>
4459       <emergency>
4460         <nationalNumberPattern>13[123]</nationalNumberPattern>
4461         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4462         <exampleNumber>133</exampleNumber>
4463       </emergency>
4464     </territory>
4465
4466     <!-- Cameroon -->
4467     <!-- http://www.itu.int/oth/T0202000024/en -->
4468     <territory id="CM" countryCode="237" internationalPrefix="00">
4469       <availableFormats>
4470         <!-- Formatting on the internet is consistently with the first 2 extracted, and usually in
4471              the same format as France (all 2 digit groups) so we use this instead of the guidance
4472              of the national numbering plan (which has 1 3 2 2 and 4 4 as its two formatting
4473              examples.) -->
4474         <numberFormat pattern="([2357-9]\d)(\d{2})(\d{2})(\d{2})">
4475           <leadingDigits>
4476             [23579]|
4477             88
4478           </leadingDigits>
4479           <format>$1 $2 $3 $4</format>
4480         </numberFormat>
4481         <numberFormat pattern="(800)(\d{2})(\d{3})">
4482           <leadingDigits>80</leadingDigits>
4483           <format>$1 $2 $3</format>
4484         </numberFormat>
4485       </availableFormats>
4486       <generalDesc>
4487         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
4488         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4489       </generalDesc>
4490       <fixedLine>
4491         <!-- Technically, the numbers are required only to start with a 2 or a 3, but all numbers at
4492              the moment start with 22 or 33 since they have been migrated from seven digit numbers
4493              beginning with these numbers. This rule should be relaxed if/when we start getting
4494              numbers beginning in other ways. -->
4495         <nationalNumberPattern>
4496           (?:
4497             22|
4498             33
4499           )\d{6}
4500         </nationalNumberPattern>
4501         <exampleNumber>22123456</exampleNumber>
4502       </fixedLine>
4503       <mobile>
4504         <!-- Mobile numbers beginning with 5 were found online. -->
4505         <nationalNumberPattern>[579]\d{7}</nationalNumberPattern>
4506         <exampleNumber>71234567</exampleNumber>
4507       </mobile>
4508       <tollFree>
4509         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
4510         <exampleNumber>80012345</exampleNumber>
4511       </tollFree>
4512       <premiumRate>
4513         <!-- These numbers are listed as value-added in the guide, and in practice seem to begin
4514              with 88 (usually 880). No information can be found as to whether these are premium rate
4515              or shared cost. -->
4516         <nationalNumberPattern>88\d{6}</nationalNumberPattern>
4517         <exampleNumber>88012345</exampleNumber>
4518       </premiumRate>
4519       <!-- http://www.diplomatie.gouv.fr/fr/conseils-aux-voyageurs_909/conseils-par-pays_12191/cameroun_12221/index.html -->
4520       <emergency>
4521         <!-- Numbers must be prefixed with a 1 when dialled from a mobile. -->
4522         <nationalNumberPattern>1?1[37]</nationalNumberPattern>
4523         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
4524         <exampleNumber>113</exampleNumber>
4525       </emergency>
4526     </territory>
4527
4528     <!-- China -->
4529     <!-- http://www.itu.int/oth/T020200002B/en -->
4530     <territory id="CN" countryCode="86" internationalPrefix="(1[1279]\d{3})?00"
4531                preferredInternationalPrefix="00" nationalPrefix="0"
4532                nationalPrefixForParsing="(1[1279]\d{3})|0">
4533       <availableFormats>
4534         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(80\d{2})(\d{4})"
4535                       nationalPrefixOptionalWhenFormatting="true"
4536                       carrierCodeFormattingRule="$CC $FG">
4537           <leadingDigits>80[2678]</leadingDigits>
4538           <format>$1 $2</format>
4539         </numberFormat>
4540         <numberFormat pattern="([48]00)(\d{3})(\d{4})">
4541           <leadingDigits>[48]00</leadingDigits>
4542           <format>$1 $2 $3</format>
4543         </numberFormat>
4544         <!-- 95xxx shared cost numbers. Without this rule, the numbers will be formatted
4545              incorrectly by the AsYouTypeFormatter because they overlap with area code 095x.
4546              Note although ITU says the format is more like 95 xxx, in reality no space is used
4547              when writing such numbers in China -->
4548         <numberFormat pattern="(\d{5})">
4549           <leadingDigits>95</leadingDigits>
4550           <format>$1</format>
4551         </numberFormat>
4552         <!-- 95xxx numbers with area codes. -->
4553         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{2})(\d{5,6})"
4554                       carrierCodeFormattingRule="$CC $FG">
4555           <leadingDigits>
4556             (?:
4557               10|
4558               2\d
4559             )9
4560           </leadingDigits>
4561           <leadingDigits>
4562             (?:
4563               10|
4564               2\d
4565             )95
4566           </leadingDigits>
4567           <format>$1 $2</format>
4568         </numberFormat>
4569         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{5,6})"
4570                       carrierCodeFormattingRule="$CC $FG">
4571           <leadingDigits>[3-9]</leadingDigits>
4572           <leadingDigits>[3-9]\d{2}9</leadingDigits>
4573           <leadingDigits>[3-9]\d{2}95</leadingDigits>
4574           <format>$1 $2</format>
4575         </numberFormat>
4576         <!-- Local numbers -->
4577         <!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
4578              can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
4579              people frequently store them in their cellphones. It has to stay before formatting
4580              rules for fixed-line numbers to make AsYouTypeFormatter work with these numbers. The
4581              leadingDigits prefix makes sure it doesn't clash with mobile numbers. -->
4582         <numberFormat pattern="(\d{3,4})(\d{4})">
4583           <leadingDigits>[2-9]</leadingDigits>
4584           <format>$1 $2</format>
4585           <intlFormat>NA</intlFormat>
4586         </numberFormat>
4587         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(21)(\d{4})(\d{4,6})"
4588                       nationalPrefixOptionalWhenFormatting="true"
4589                       carrierCodeFormattingRule="$CC $FG">
4590           <leadingDigits>21</leadingDigits>
4591           <format>$1 $2 $3</format>
4592         </numberFormat>
4593         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="([12]\d)(\d{4})(\d{4})"
4594                       nationalPrefixOptionalWhenFormatting="true"
4595                       carrierCodeFormattingRule="$CC $FG">
4596           <leadingDigits>
4597             10[1-9]|
4598             2[02-9]
4599           </leadingDigits>
4600           <!-- Note the leadingDigitsPattern for 4 digits is the same as 3 digits, -->
4601           <leadingDigits>
4602             10[1-9]|
4603             2[02-9]
4604           </leadingDigits>
4605           <leadingDigits>
4606             10(?:
4607               [1-79]|
4608               8(?:
4609                 [1-9]|
4610                 0[1-9]
4611               )
4612             )|
4613             2[02-9]
4614           </leadingDigits>
4615           <format>$1 $2 $3</format>
4616         </numberFormat>
4617         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{4})(\d{4})"
4618                       nationalPrefixOptionalWhenFormatting="true"
4619                       carrierCodeFormattingRule="$CC $FG">
4620           <leadingDigits>
4621             3(?:
4622               11|
4623               7[179]
4624             )|
4625             4(?:
4626               [15]1|
4627               3[12]
4628             )|
4629             5(?:
4630               1|
4631               2[37]|
4632               3[12]|
4633               51|
4634               7[13-79]|
4635               9[15]
4636             )|
4637             7(?:
4638               31|
4639               5[457]|
4640               6[09]|
4641               91
4642             )|
4643             8(?:
4644               71|
4645               98
4646             )
4647           </leadingDigits>
4648           <format>$1 $2 $3</format>
4649         </numberFormat>
4650         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
4651                       nationalPrefixOptionalWhenFormatting="true"
4652                       carrierCodeFormattingRule="$CC $FG">
4653           <leadingDigits>
4654             3(?:
4655               1[02-9]|
4656               35|
4657               49|
4658               5|
4659               7[02-68]|
4660               9[1-68]
4661             )|
4662             4(?:
4663               1[02-9]|
4664               2[179]|
4665               [35][2-9]|
4666               6[4789]|
4667               7\d|
4668               8[23]
4669             )|
4670             5(?:
4671               3[03-9]|
4672               4[36]|
4673               5[02-9]|
4674               6[1-46]|
4675               7[028]|
4676               80|
4677               9[2-46-9]
4678             )|
4679             6(?:
4680               3[1-5]|
4681               6[0238]|
4682               9[12]
4683             )|
4684             7(?:
4685               01|
4686               [1579]|
4687               2[248]|
4688               3[04-9]|
4689               4[3-6]|
4690               6[2368]
4691             )|
4692             8(?:
4693               1[236-8]|
4694               2[5-7]|
4695               3|
4696               5[1-9]|
4697               7[02-9]|
4698               8[3678]|
4699               9[1-7]
4700             )|
4701             9(?:
4702               0[1-3689]|
4703               1[1-79]|
4704               [379]|
4705               4[13]|
4706               5[1-5]
4707             )
4708           </leadingDigits>
4709           <format>$1 $2 $3</format>
4710         </numberFormat>
4711         <numberFormat pattern="(1[3-58]\d)(\d{4})(\d{4})" carrierCodeFormattingRule="$CC $FG">
4712           <leadingDigits>1[3-58]</leadingDigits>
4713           <format>$1 $2 $3</format>
4714         </numberFormat>
4715         <numberFormat pattern="(10800)(\d{3})(\d{4})">
4716           <leadingDigits>108</leadingDigits>
4717           <leadingDigits>1080</leadingDigits>
4718           <leadingDigits>10800</leadingDigits>
4719           <format>$1 $2 $3</format>
4720         </numberFormat>
4721       </availableFormats>
4722       <generalDesc>
4723         <nationalNumberPattern>
4724           [1-7]\d{6,11}|
4725           8[0-357-9]\d{6,9}|
4726           9(?:
4727             5\d{3,4}|
4728             \d{9}
4729           )
4730         </nationalNumberPattern>
4731         <possibleNumberPattern>\d{4,12}</possibleNumberPattern>
4732       </generalDesc>
4733       <noInternationalDialling>
4734         <!-- 95xxx numbers have been verified to be unreachable from overseas by placing actual
4735              calls. -->
4736         <nationalNumberPattern>
4737           (?:
4738             4|
4739             (?:
4740               10
4741             )?8
4742           )00\d{7}|
4743           95\d{3}
4744         </nationalNumberPattern>
4745         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
4746         <exampleNumber>4001234567</exampleNumber>
4747       </noInternationalDialling>
4748       <fixedLine>
4749         <!-- 0432 increased to 8 digits on October 24, 2009. 0791 increased to 8 digits on August
4750              28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0871
4751              increased to 8 digits on December 16, 2012. 0475 is the prefix for Tongliao but is not
4752              in the ITU data.
4753              95xxx(x) numbers with area codes are also included here, as they behave exactly like
4754              fixed-line numbers. We don't support them for 4-digit area codes though, as
4755              they don't seem to be used there based on making actual phone calls.
4756          -->
4757         <nationalNumberPattern>
4758           21(?:
4759             95\d{3,4}|
4760             \d{8,10}
4761           )|
4762           (?:
4763             10|
4764             2[02-57-9]|
4765             3(?:
4766               11|
4767               7[179]
4768             )|
4769             4(?:
4770               [15]1|
4771               3[12]
4772             )|
4773             5(?:
4774               1\d|
4775               2[37]|
4776               3[12]|
4777               51|
4778               7[13-79]|
4779               9[15]
4780             )|
4781             7(?:
4782               31|
4783               5[457]|
4784               6[09]|
4785               91
4786             )|
4787             8(?:
4788               71|
4789               98
4790             )
4791           )(?:
4792             95\d{3,4}|
4793             \d{8}
4794           )|
4795           (?:
4796             3(?:
4797               1[02-9]|
4798               35|
4799               49|
4800               5\d|
4801               7[02-68]|
4802               9[1-68]
4803             )|
4804             4(?:
4805               1[02-9]|
4806               2[179]|
4807               3[3-9]|
4808               5[2-9]|
4809               6[4789]|
4810               7\d|
4811               8[23]
4812             )|
4813             5(?:
4814               3[03-9]|
4815               4[36]|
4816               5[02-9]|
4817               6[1-46]|
4818               7[028]|
4819               80|
4820               9[2-46-9]
4821             )|
4822             6(?:
4823               3[1-5]|
4824               6[0238]|
4825               9[12]
4826             )|
4827             7(?:
4828               01|
4829               [17]\d|
4830               2[248]|
4831               3[04-9]|
4832               4[3-6]|
4833               5[0-3689]|
4834               6[2368]|
4835               9[02-9]
4836             )|
4837             8(?:
4838               1[236-8]|
4839               2[5-7]|
4840               3\d|
4841               5[1-9]|
4842               7[02-9]|
4843               8[3678]|
4844               9[1-7]
4845             )|
4846             9(?:
4847               0[1-3689]|
4848               1[1-79]|
4849               [379]\d|
4850               4[13]|
4851               5[1-5]
4852             )
4853           )(?:
4854             95\d{3,4}|
4855             \d{7}
4856           )|
4857           80(?:
4858             29|
4859             6[03578]|
4860             7[018]|
4861             81
4862           )\d{4}
4863         </nationalNumberPattern>
4864         <exampleNumber>1012345678</exampleNumber>
4865       </fixedLine>
4866       <mobile>
4867         <nationalNumberPattern>
4868           1(?:
4869             3\d|
4870             4[57]|
4871             [58][0-35-9]
4872           )\d{8}
4873         </nationalNumberPattern>
4874         <possibleNumberPattern>\d{11}</possibleNumberPattern>
4875         <exampleNumber>13123456789</exampleNumber>
4876       </mobile>
4877       <!-- Toll free, premium rate, and VoIP numbers are not clearly defined in the official Chinese
4878            number plan, and do not seem to have been standardized. The information below is
4879            collected from searching the web. -->
4880       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
4881       <tollFree>
4882         <nationalNumberPattern>
4883           (?:
4884             10
4885           )?800\d{7}
4886         </nationalNumberPattern>
4887         <possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4888         <exampleNumber>8001234567</exampleNumber>
4889       </tollFree>
4890       <premiumRate>
4891         <nationalNumberPattern>16[08]\d{5}</nationalNumberPattern>
4892         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4893         <exampleNumber>16812345</exampleNumber>
4894       </premiumRate>
4895       <sharedCost>
4896         <!-- 95xxx(x) numbers are covered by the ITU doc, but the following doc contains more info:
4897              http://baike.baidu.com/view/3269670.htm. They can be dialed nationwide and are always
4898              routed to the local provider. Note they can also be used with area codes when one
4899              specifically wants to reach an operator in a different region. That case is more
4900              like fixed-line numbers and is covered under the fixed-line pattern. -->
4901         <nationalNumberPattern>
4902           400\d{7}|
4903           95\d{3,4}
4904         </nationalNumberPattern>
4905         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
4906         <exampleNumber>4001234567</exampleNumber>
4907       </sharedCost>
4908       <emergency>
4909         <nationalNumberPattern>
4910           1(?:
4911             1[09]|
4912             20
4913           )
4914         </nationalNumberPattern>
4915         <possibleNumberPattern>\d{3}</possibleNumberPattern>
4916         <exampleNumber>119</exampleNumber>
4917       </emergency>
4918     </territory>
4919
4920     <!-- Colombia -->
4921     <!-- http://www.itu.int/oth/T020200002C/en -->
4922     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia -->
4923     <territory id="CO" countryCode="57" internationalPrefix="00[579]|#555|#999"
4924                nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?">
4925       <availableFormats>
4926         <numberFormat pattern="(\d)(\d{7})" carrierCodeFormattingRule="$NP$CC $FG"
4927           nationalPrefixFormattingRule="($FG)">
4928           <leadingDigits>
4929             1(?:
4930               8[2-9]|
4931               9[0-3]|
4932               [2-7]
4933             )|
4934             [24-8]
4935           </leadingDigits>
4936           <leadingDigits>
4937             1(?:
4938               8[2-9]|
4939               9(?:
4940                 09|
4941                 [1-3]
4942               )|
4943               [2-7]
4944             )|
4945             [24-8]
4946           </leadingDigits>
4947           <format>$1 $2</format>
4948         </numberFormat>
4949         <numberFormat pattern="(\d{3})(\d{7})" carrierCodeFormattingRule="$NP$CC $FG">
4950           <leadingDigits>3</leadingDigits>
4951           <format>$1 $2</format>
4952         </numberFormat>
4953         <numberFormat pattern="(1)(\d{3})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
4954           <leadingDigits>
4955             1(?:
4956               80|
4957               9[04]
4958             )
4959           </leadingDigits>
4960           <leadingDigits>
4961             1(?:
4962               800|
4963               9(?:
4964                 0[01]|
4965                 4[78]
4966               )
4967             )
4968           </leadingDigits>
4969           <format>$1-$2-$3</format>
4970           <intlFormat>$1 $2 $3</intlFormat>
4971         </numberFormat>
4972       </availableFormats>
4973       <generalDesc>
4974         <nationalNumberPattern>
4975           (?:
4976             [13]\d{0,3}|
4977             [24-8]
4978           )\d{7}
4979         </nationalNumberPattern>
4980         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
4981       </generalDesc>
4982       <fixedLine>
4983         <nationalNumberPattern>[124-8][2-9]\d{6}</nationalNumberPattern>
4984         <possibleNumberPattern>\d{8}</possibleNumberPattern>
4985         <exampleNumber>12345678</exampleNumber>
4986       </fixedLine>
4987       <mobile>
4988         <!-- Virgin Mobile Colombia have reported that they are now using the 319 prefix. -->
4989         <nationalNumberPattern>
4990           3(?:
4991             0[0-24]|
4992             1\d|
4993             2[01]
4994           )\d{7}
4995         </nationalNumberPattern>
4996         <possibleNumberPattern>\d{10}</possibleNumberPattern>
4997         <exampleNumber>3211234567</exampleNumber>
4998       </mobile>
4999       <tollFree>
5000         <nationalNumberPattern>1800\d{7}</nationalNumberPattern>
5001         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5002         <exampleNumber>18001234567</exampleNumber>
5003       </tollFree>
5004       <premiumRate>
5005         <nationalNumberPattern>
5006           19(?:
5007             0[01]|
5008             4[78]
5009           )\d{7}
5010         </nationalNumberPattern>
5011         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5012         <exampleNumber>19001234567</exampleNumber>
5013       </premiumRate>
5014       <emergency>
5015         <nationalNumberPattern>
5016           1(?:
5017             1[29]|
5018             23|
5019             32|
5020             56
5021           )
5022         </nationalNumberPattern>
5023         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5024         <exampleNumber>112</exampleNumber>
5025       </emergency>
5026     </territory>
5027
5028     <!-- Costa Rica -->
5029     <!-- http://www.itu.int/oth/T0202000030/en -->
5030     <territory id="CR" countryCode="506" internationalPrefix="00"
5031                nationalPrefixForParsing="(19(?:0[0-2468]|19|20|66|77))"
5032                carrierCodeFormattingRule="$CC $FG">
5033       <availableFormats>
5034         <numberFormat pattern="(\d{4})(\d{4})">
5035           <leadingDigits>
5036             [24-7]|
5037             8[3-9]
5038           </leadingDigits>
5039           <format>$1 $2</format>
5040         </numberFormat>
5041         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
5042           <leadingDigits>[89]0</leadingDigits>
5043           <format>$1-$2-$3</format>
5044         </numberFormat>
5045       </availableFormats>
5046       <generalDesc>
5047         <nationalNumberPattern>[24-9]\d{7,9}</nationalNumberPattern>
5048         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
5049       </generalDesc>
5050       <fixedLine>
5051         <nationalNumberPattern>2[24-7]\d{6}</nationalNumberPattern>
5052         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5053         <exampleNumber>22123456</exampleNumber>
5054       </fixedLine>
5055       <mobile>
5056         <nationalNumberPattern>
5057           5(?:
5058             0[0-4]|
5059             7[01]
5060           )\d{5}|
5061           [67][0-2]\d{6}|
5062           8[3-9]\d{6}
5063         </nationalNumberPattern>
5064         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5065         <exampleNumber>83123456</exampleNumber>
5066       </mobile>
5067       <tollFree>
5068         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
5069         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5070         <exampleNumber>8001234567</exampleNumber>
5071       </tollFree>
5072       <premiumRate>
5073         <!-- Includes "mass calls" numbers with prefix 905. -->
5074         <nationalNumberPattern>90[059]\d{7}</nationalNumberPattern>
5075         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5076         <exampleNumber>9001234567</exampleNumber>
5077       </premiumRate>
5078       <voip>
5079         <!-- Including trunking service numbers starting with 5100. -->
5080         <nationalNumberPattern>
5081           210[0-6]\d{4}|
5082           4(?:
5083             0(?:
5084               [04]0\d{4}|
5085               10[0-3]\d{3}|
5086               2(?:
5087                 00\d|
5088                 900
5089               )\d{2}|
5090               3[01]\d{4}|
5091               5\d{5}|
5092               70[01]\d{3}|
5093               8[0-2]\d{4}
5094             )|
5095             1[01]\d{5}|
5096             20[0-3]\d{4}|
5097             400\d{4}|
5098             70[0-2]\d{4}
5099           )|
5100           5100\d{4}
5101         </nationalNumberPattern>
5102         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5103         <exampleNumber>40001234</exampleNumber>
5104       </voip>
5105       <emergency>
5106         <nationalNumberPattern>
5107           112|
5108           911
5109         </nationalNumberPattern>
5110         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5111         <exampleNumber>911</exampleNumber>
5112       </emergency>
5113     </territory>
5114
5115     <!-- Cuba -->
5116     <!-- www.itu.int/oth/T0202000033/en -->
5117     <territory id="CU" countryCode="53" internationalPrefix="119"
5118                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
5119       <availableFormats>
5120         <numberFormat pattern="(\d)(\d{6,7})">
5121           <leadingDigits>7</leadingDigits>
5122           <format>$1 $2</format>
5123         </numberFormat>
5124         <numberFormat pattern="(\d{2})(\d{4,6})">
5125           <leadingDigits>[2-4]</leadingDigits>
5126           <format>$1 $2</format>
5127         </numberFormat>
5128         <numberFormat pattern="(\d)(\d{7})" nationalPrefixFormattingRule="$NP$FG">
5129           <leadingDigits>5</leadingDigits>
5130           <format>$1 $2</format>
5131         </numberFormat>
5132       </availableFormats>
5133       <generalDesc>
5134         <nationalNumberPattern>[2-57]\d{5,7}</nationalNumberPattern>
5135         <possibleNumberPattern>\d{4,8}</possibleNumberPattern>
5136       </generalDesc>
5137       <fixedLine>
5138         <nationalNumberPattern>
5139           2[1-4]\d{5,6}|
5140           3(?:
5141             1\d{6}|
5142             [23]\d{4,6}
5143           )|
5144           4(?:
5145             [125]\d{5,6}|
5146             [36]\d{6}|
5147             [78]\d{4,6}
5148           )|
5149           7\d{6,7}
5150         </nationalNumberPattern>
5151         <exampleNumber>71234567</exampleNumber>
5152       </fixedLine>
5153       <mobile>
5154         <nationalNumberPattern>5\d{7}</nationalNumberPattern>
5155         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5156         <exampleNumber>51234567</exampleNumber>
5157       </mobile>
5158       <emergency>
5159         <nationalNumberPattern>10[456]</nationalNumberPattern>
5160         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5161         <exampleNumber>106</exampleNumber>
5162       </emergency>
5163     </territory>
5164
5165     <!-- Cape Verde -->
5166     <!-- http://www.itu.int/oth/T0202000026/en -->
5167     <territory id="CV" countryCode="238" internationalPrefix="0">
5168       <availableFormats>
5169         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
5170           <format>$1 $2 $3</format>
5171         </numberFormat>
5172       </availableFormats>
5173       <generalDesc>
5174         <nationalNumberPattern>[259]\d{6}</nationalNumberPattern>
5175         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5176       </generalDesc>
5177       <fixedLine>
5178         <nationalNumberPattern>
5179           2(?:
5180             2[1-7]|
5181             3[0-8]|
5182             4[12]|
5183             5[1256]|
5184             6\d|
5185             7[1-3]|
5186             8[1-5]
5187           )\d{4}
5188         </nationalNumberPattern>
5189         <exampleNumber>2211234</exampleNumber>
5190       </fixedLine>
5191       <mobile>
5192         <!-- It seems, contrary to their numbering plan, the entire 9X range is used for mobile
5193              phones. SMS messages has been successfully sent to numbers starting with 95 and 97 for
5194              example, and there are plenty of numbers on the internet that start with these
5195              prefixes. -->
5196         <nationalNumberPattern>
5197           (?:
5198             9\d|
5199             59
5200           )\d{5}
5201         </nationalNumberPattern>
5202         <exampleNumber>9911234</exampleNumber>
5203       </mobile>
5204       <emergency>
5205         <!-- http://www.capeverde.com/travel-tips/safety.html -->
5206         <nationalNumberPattern>13[012]</nationalNumberPattern>
5207         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5208         <exampleNumber>132</exampleNumber>
5209       </emergency>
5210     </territory>
5211
5212     <!-- Curaçao -->
5213     <!-- http://www.itu.int/oth/T02020000F5/en -->
5214     <territory id="CW" countryCode="599" internationalPrefix="00" mainCountryForCode="true">
5215       <!-- All the formatting patterns for country-code 599 are here. -->
5216       <availableFormats>
5217         <numberFormat pattern="(\d{3})(\d{4})">
5218           <leadingDigits>[13-7]</leadingDigits>
5219           <format>$1 $2</format>
5220         </numberFormat>
5221         <numberFormat pattern="(9)(\d{3})(\d{4})">
5222           <leadingDigits>9</leadingDigits>
5223           <format>$1 $2 $3</format>
5224         </numberFormat>
5225       </availableFormats>
5226       <generalDesc>
5227         <nationalNumberPattern>[169]\d{6,7}</nationalNumberPattern>
5228         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
5229       </generalDesc>
5230       <fixedLine>
5231         <nationalNumberPattern>
5232           9(?:
5233             [48]\d{2}|
5234             50\d|
5235             7(?:
5236               2[0-2]|
5237               [34]\d|
5238               6[35-7]|
5239               77
5240             )
5241           )\d{4}
5242         </nationalNumberPattern>
5243         <exampleNumber>94151234</exampleNumber>
5244       </fixedLine>
5245       <mobile>
5246         <nationalNumberPattern>
5247           9(?:
5248             5(?:
5249               [1246]\d|
5250               3[01]
5251             )|
5252             6(?:
5253               [1679]\d|
5254               3[01]
5255             )
5256           )\d{4}
5257         </nationalNumberPattern>
5258         <exampleNumber>95181234</exampleNumber>
5259       </mobile>
5260       <pager>
5261         <nationalNumberPattern>955\d{5}</nationalNumberPattern>
5262         <exampleNumber>95581234</exampleNumber>
5263       </pager>
5264       <sharedCost>
5265         <!-- Value-added services are lumped together under shared cost, since we are not sure
5266              exactly what they are. -->
5267         <nationalNumberPattern>
5268           (?:
5269             10|
5270             69
5271           )\d{5}
5272         </nationalNumberPattern>
5273         <possibleNumberPattern>\d{7}</possibleNumberPattern>
5274         <exampleNumber>1011234</exampleNumber>
5275       </sharedCost>
5276       <emergency>
5277         <!-- http://www.rijksdienstcn.com/index.php?view=pagina&id=126&set_language=EN -->
5278         <nationalNumberPattern>
5279           112|
5280           911
5281         </nationalNumberPattern>
5282         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5283         <exampleNumber>112</exampleNumber>
5284       </emergency>
5285     </territory>
5286
5287     <!-- Cyprus -->
5288     <!-- http://www.itu.int/oth/T0202000034/en -->
5289     <territory id="CY" countryCode="357" internationalPrefix="00">
5290       <availableFormats>
5291         <!-- Format from http://www.cyprusyellowpages.com/-->
5292         <numberFormat pattern="(\d{2})(\d{6})">
5293           <format>$1 $2</format>
5294         </numberFormat>
5295       </availableFormats>
5296       <generalDesc>
5297         <nationalNumberPattern>[257-9]\d{7}</nationalNumberPattern>
5298         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5299       </generalDesc>
5300       <fixedLine>
5301         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
5302         <exampleNumber>22345678</exampleNumber>
5303       </fixedLine>
5304       <mobile>
5305         <!-- Includes paging numbers (they are mixed into the same block). -->
5306         <nationalNumberPattern>9[5-79]\d{6}</nationalNumberPattern>
5307         <exampleNumber>96123456</exampleNumber>
5308       </mobile>
5309       <tollFree>
5310         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
5311         <exampleNumber>80001234</exampleNumber>
5312       </tollFree>
5313       <premiumRate>
5314         <nationalNumberPattern>90[09]\d{5}</nationalNumberPattern>
5315         <exampleNumber>90012345</exampleNumber>
5316       </premiumRate>
5317       <sharedCost>
5318         <nationalNumberPattern>80[1-9]\d{5}</nationalNumberPattern>
5319         <exampleNumber>80112345</exampleNumber>
5320       </sharedCost>
5321       <personalNumber>
5322         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
5323         <exampleNumber>70012345</exampleNumber>
5324       </personalNumber>
5325       <uan>
5326         <!-- Using for Corporate Network numbers and Universal Service numbers. -->
5327         <nationalNumberPattern>
5328           (?:
5329             50|
5330             77
5331           )\d{6}
5332         </nationalNumberPattern>
5333         <exampleNumber>77123456</exampleNumber>
5334       </uan>
5335       <emergency>
5336         <nationalNumberPattern>
5337           1(?:
5338             12|
5339             99
5340           )
5341         </nationalNumberPattern>
5342         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5343         <exampleNumber>112</exampleNumber>
5344       </emergency>
5345     </territory>
5346
5347     <!-- Christmas Islands -->
5348     <!-- Metadata shared with Australia. -->
5349     <!-- References state Christmas Islands have fixed line numbers starting +61 8 9164. -->
5350     <!-- http://en.wikipedia.org/wiki/List_of_country_calling_codes -->
5351     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia -->
5352     <territory id="CX" countryCode="61" preferredInternationalPrefix="0011"
5353                internationalPrefix="(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]"
5354                nationalPrefix="0">
5355       <!-- Uses AU formatting rules. -->
5356       <!-- General desc and fixed line rules different from Australia. -->
5357       <generalDesc>
5358         <nationalNumberPattern>[1458]\d{5,9}</nationalNumberPattern>
5359         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5360       </generalDesc>
5361       <fixedLine>
5362         <nationalNumberPattern>89164\d{4}</nationalNumberPattern>
5363         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
5364         <exampleNumber>891641234</exampleNumber>
5365       </fixedLine>
5366       <!-- Mobile, toll free, premium rate, personal number and VOIP copied from Australia. -->
5367       <mobile>
5368         <nationalNumberPattern>
5369           4(?:
5370             [0-2]\d|
5371             3[0-57-9]|
5372             4[47-9]|
5373             5[0-37-9]|
5374             6[6-9]|
5375             7[07-9]|
5376             8[7-9]
5377           )\d{6}
5378         </nationalNumberPattern>
5379         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5380         <exampleNumber>412345678</exampleNumber>
5381       </mobile>
5382       <tollFree>
5383         <nationalNumberPattern>
5384           1(?:
5385             80(?:
5386               0\d{2}
5387             )?|
5388             3(?:
5389               00\d{2}
5390             )?
5391           )\d{4}
5392         </nationalNumberPattern>
5393         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
5394         <exampleNumber>1800123456</exampleNumber>
5395       </tollFree>
5396       <premiumRate>
5397         <nationalNumberPattern>190[0126]\d{6}</nationalNumberPattern>
5398         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5399         <exampleNumber>1900123456</exampleNumber>
5400       </premiumRate>
5401       <personalNumber>
5402         <nationalNumberPattern>500\d{6}</nationalNumberPattern>
5403         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5404         <exampleNumber>500123456</exampleNumber>
5405       </personalNumber>
5406       <voip>
5407         <nationalNumberPattern>550\d{6}</nationalNumberPattern>
5408         <possibleNumberPattern>\d{9}</possibleNumberPattern>
5409         <exampleNumber>550123456</exampleNumber>
5410       </voip>
5411       <emergency>
5412         <!-- We assume this is the same as for Australia, since they have the same country code and
5413              share their police force, and no better information can be found. -->
5414         <nationalNumberPattern>
5415           000|
5416           112
5417         </nationalNumberPattern>
5418         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5419         <exampleNumber>112</exampleNumber>
5420       </emergency>
5421     </territory>
5422
5423     <!-- Czech Rep. -->
5424     <!-- http://www.itu.int/oth/T0202000035/en -->
5425     <!-- http://en.wikipedia.org/wiki/%2B420 -->
5426     <territory id="CZ" countryCode="420" internationalPrefix="00">
5427       <availableFormats>
5428         <numberFormat pattern="([2-9]\d{2})(\d{3})(\d{3})">
5429           <leadingDigits>
5430             [2-8]|
5431             9[015-7]
5432           </leadingDigits>
5433           <format>$1 $2 $3</format>
5434         </numberFormat>
5435         <numberFormat pattern="(96\d)(\d{3})(\d{3})(\d{3})">
5436           <leadingDigits>96</leadingDigits>
5437           <format>$1 $2 $3 $4</format>
5438         </numberFormat>
5439         <numberFormat pattern="(9\d)(\d{3})(\d{3})(\d{3})">
5440           <leadingDigits>9[36]</leadingDigits>
5441           <format>$1 $2 $3 $4</format>
5442         </numberFormat>
5443       </availableFormats>
5444       <generalDesc>
5445         <nationalNumberPattern>
5446           [2-8]\d{8}|
5447           9\d{8,11}
5448         </nationalNumberPattern>
5449         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5450       </generalDesc>
5451       <fixedLine>
5452         <nationalNumberPattern>
5453           2\d{8}|
5454           (?:
5455             3[1257-9]|
5456             4[16-9]|
5457             5[13-9]
5458           )\d{7}
5459         </nationalNumberPattern>
5460         <exampleNumber>212345678</exampleNumber>
5461       </fixedLine>
5462       <mobile>
5463         <nationalNumberPattern>
5464           (?:
5465             60[1-8]|
5466             7(?:
5467               0[2-5]|
5468               [2379]\d
5469             )
5470           )\d{6}
5471         </nationalNumberPattern>
5472         <exampleNumber>601123456</exampleNumber>
5473       </mobile>
5474       <tollFree>
5475         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
5476         <exampleNumber>800123456</exampleNumber>
5477       </tollFree>
5478       <premiumRate>
5479         <!-- Includes premium rate dial-up. -->
5480         <nationalNumberPattern>
5481           9(?:
5482             0[05689]|
5483             76
5484           )\d{6}
5485         </nationalNumberPattern>
5486         <exampleNumber>900123456</exampleNumber>
5487       </premiumRate>
5488       <sharedCost>
5489         <nationalNumberPattern>8[134]\d{7}</nationalNumberPattern>
5490         <exampleNumber>811234567</exampleNumber>
5491       </sharedCost>
5492       <personalNumber>
5493         <nationalNumberPattern>70[01]\d{6}</nationalNumberPattern>
5494         <exampleNumber>700123456</exampleNumber>
5495       </personalNumber>
5496       <voip>
5497         <nationalNumberPattern>9[17]0\d{6}</nationalNumberPattern>
5498         <exampleNumber>910123456</exampleNumber>
5499       </voip>
5500       <uan>
5501         <!-- Numbers belonging to private communication networks are included here. These are
5502              classified as Institutional networks, belonging to institutions like the police, armed
5503              forces and railways, along with a couple of formerly government-owned banks. These
5504              numbers are reachable by the public. -->
5505         <nationalNumberPattern>
5506           9(?:
5507             5\d|
5508             7[234]
5509           )\d{6}
5510         </nationalNumberPattern>
5511         <exampleNumber>972123456</exampleNumber>
5512       </uan>
5513       <voicemail>
5514         <nationalNumberPattern>
5515           9(?:
5516             3\d{9}|
5517             6\d{7,10}
5518           )
5519         </nationalNumberPattern>
5520         <possibleNumberPattern>\d{9,12}</possibleNumberPattern>
5521         <exampleNumber>93123456789</exampleNumber>
5522       </voicemail>
5523       <emergency>
5524         <nationalNumberPattern>
5525           1(?:
5526             12|
5527             5[058]
5528           )
5529         </nationalNumberPattern>
5530         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5531         <exampleNumber>112</exampleNumber>
5532       </emergency>
5533     </territory>
5534
5535     <!-- Germany -->
5536     <!-- http://www.itu.int/oth/T0202000051/en -->
5537     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_germany -->
5538     <territory id="DE" countryCode="49" internationalPrefix="00"
5539                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
5540       <availableFormats>
5541         <!-- Mobile number formatting rules. We follow the ITU document here for guidance on how
5542              these should best be formatted, even though actual usage varies. -->
5543         <numberFormat pattern="(1\d{2})(\d{7,8})">
5544           <leadingDigits>1[67]</leadingDigits>
5545           <format>$1 $2</format>
5546         </numberFormat>
5547         <numberFormat pattern="(1\d{3})(\d{7})">
5548           <leadingDigits>15</leadingDigits>
5549           <format>$1 $2</format>
5550         </numberFormat>
5551         <numberFormat pattern="(\d{2})(\d{4,11})">
5552           <leadingDigits>
5553             3[02]|
5554             40|
5555             [68]9
5556           </leadingDigits>
5557           <format>$1 $2</format>
5558         </numberFormat>
5559         <!-- The order of the rules on 3-5 digits area code matter as fallback is used here. -->
5560         <!-- 3 digit area codes. -->
5561         <numberFormat pattern="(\d{3})(\d{3,11})">
5562           <leadingDigits>
5563             2(?:
5564               \d1|
5565               0[2389]|
5566               1[24]|
5567               28|
5568               34
5569             )|
5570             3(?:
5571               [3-9][15]|
5572               40
5573             )|
5574             [4-8][1-9]1|
5575             9(?:
5576               06|
5577               [1-9]1
5578             )
5579           </leadingDigits>
5580           <format>$1 $2</format>
5581         </numberFormat>
5582         <!-- 4 digit area codes. -->
5583         <numberFormat pattern="(\d{4})(\d{2,11})">
5584           <leadingDigits>
5585             [24-6]|
5586             [7-9](?:
5587               \d[1-9]|
5588               [1-9]\d
5589             )|
5590             3(?:
5591               [3569][02-46-9]|
5592               4[2-4679]|
5593               7[2-467]|
5594               8[2-46-8]
5595             )
5596           </leadingDigits>
5597           <leadingDigits>
5598             [24-6]|
5599             [7-9](?:
5600               \d[1-9]|
5601               [1-9]\d
5602             )|
5603             3(?:
5604               3(?:
5605                 0[1-467]|
5606                 2[127-9]|
5607                 3[124578]|
5608                 [46][1246]|
5609                 7[1257-9]|
5610                 8[1256]|
5611                 9[145]
5612               )|
5613               4(?:
5614                 2[135]|
5615                 3[1357]|
5616                 4[13578]|
5617                 6[1246]|
5618                 7[1356]|
5619                 9[1346]
5620               )|
5621               5(?:
5622                 0[14]|
5623                 2[1-3589]|
5624                 3[1357]|
5625                 4[1246]|
5626                 6[1-4]|
5627                 7[1346]|
5628                 8[13568]|
5629                 9[1246]
5630               )|
5631               6(?:
5632                 0[356]|
5633                 2[1-489]|
5634                 3[124-6]|
5635                 4[1347]|
5636                 6[13]|
5637                 7[12579]|
5638                 8[1-356]|
5639                 9[135]
5640               )|
5641               7(?:
5642                 2[1-7]|
5643                 3[1357]|
5644                 4[145]|
5645                 6[1-5]|
5646                 7[1-4]
5647               )|
5648               8(?:
5649                 21|
5650                 3[1468]|
5651                 4[1347]|
5652                 6[0135-9]|
5653                 7[1467]|
5654                 8[136]
5655               )|
5656               9(?:
5657                 0[12479]|
5658                 2[1358]|
5659                 3[1357]|
5660                 4[134679]|
5661                 6[1-9]|
5662                 7[136]|
5663                 8[147]|
5664                 9[1468]
5665               )
5666             )
5667           </leadingDigits>
5668           <format>$1 $2</format>
5669         </numberFormat>
5670         <!-- 5 digit area codes. -->
5671         <numberFormat pattern="(3\d{4})(\d{1,10})">
5672           <leadingDigits>3</leadingDigits>
5673           <format>$1 $2</format>
5674         </numberFormat>
5675         <!-- Note: this is getting ridiculous! How can we format these better? -->
5676         <numberFormat pattern="(800)(\d{7,12})">
5677           <leadingDigits>800</leadingDigits>
5678           <format>$1 $2</format>
5679         </numberFormat>
5680         <!-- Voicemail access numbers for the carrier Blau. -->
5681         <numberFormat pattern="(177)(99)(\d{7,8})">
5682           <leadingDigits>177</leadingDigits>
5683           <leadingDigits>1779</leadingDigits>
5684           <leadingDigits>17799</leadingDigits>
5685           <format>$1 $2 $3</format>
5686         </numberFormat>
5687         <numberFormat pattern="(\d{3})(\d)(\d{4,10})">
5688           <leadingDigits>
5689             (?:
5690               18|
5691               90
5692             )0
5693           </leadingDigits>
5694           <leadingDigits>
5695             180|
5696             900[1359]
5697           </leadingDigits>
5698           <format>$1 $2 $3</format>
5699         </numberFormat>
5700         <numberFormat pattern="(1\d{2})(\d{5,11})">
5701           <leadingDigits>181</leadingDigits>
5702           <format>$1 $2</format>
5703         </numberFormat>
5704         <!-- Where we have seen prefixes in use for the IVPN/User Group numbers, we format it the
5705              way it is generally written. For other prefixes, we fall back to using a three-digit
5706              prefix since we have currently no more information to allow us to format these more
5707              precisely. -->
5708         <numberFormat pattern="(18\d{3})(\d{6})">
5709           <leadingDigits>185</leadingDigits>
5710           <leadingDigits>1850</leadingDigits>
5711           <leadingDigits>18500</leadingDigits>
5712           <format>$1 $2</format>
5713         </numberFormat>
5714         <numberFormat pattern="(18\d{2})(\d{7})">
5715           <leadingDigits>18[68]</leadingDigits>
5716           <format>$1 $2</format>
5717         </numberFormat>
5718         <numberFormat pattern="(18\d)(\d{8})">
5719           <leadingDigits>18[2-579]</leadingDigits>
5720           <format>$1 $2</format>
5721         </numberFormat>
5722         <numberFormat pattern="(700)(\d{4})(\d{4})">
5723           <leadingDigits>700</leadingDigits>
5724           <format>$1 $2 $3</format>
5725         </numberFormat>
5726       </availableFormats>
5727       <generalDesc>
5728         <!-- When deciding whether to assume a leading 49 is a country code or not, the number is
5729              examined to see if it is valid with the 49 as part of the number. Due to the variable
5730              length of German numbers, this test is hard to do. The national pattern is hence
5731              stricter for numbers starting with 49, to try and remove the country code if the number
5732              begins with 49 whenever possible. -->
5733         <nationalNumberPattern>
5734           [1-35-9]\d{3,14}|
5735           4(?:
5736             [0-8]\d{4,12}|
5737             9(?:
5738               [0-37]\d|
5739               4(?:
5740                 [1-35-8]|
5741                 4\d?
5742               )|
5743               5\d{1,2}|
5744               6[1-8]\d?
5745             )\d{2,7}
5746           )
5747         </nationalNumberPattern>
5748         <possibleNumberPattern>\d{2,15}</possibleNumberPattern>
5749       </generalDesc>
5750       <fixedLine>
5751         <!-- The numbering plan defines rather optimistic longest-number limits - online numbers
5752              don't seem to respect this. The max-length is hence extended. -->
5753         <nationalNumberPattern>
5754           [246]\d{5,13}|
5755           3(?:
5756             [03-9]\d{4,13}|
5757             2\d{9}
5758           )|
5759           5(?:
5760             0[2-8]|
5761             [1256]\d|
5762             [38][0-8]|
5763             4\d{0,2}|
5764             [79][0-7]
5765           )\d{3,11}|
5766           7(?:
5767             0[2-8]|
5768             [1-9]\d
5769           )\d{3,10}|
5770           8(?:
5771             0[2-9]|
5772             [1-9]\d
5773           )\d{3,10}|
5774           9(?:
5775             0[6-9]\d{3,10}|
5776             1\d{4,12}|
5777             [2-9]\d{4,11}
5778           )
5779         </nationalNumberPattern>
5780         <exampleNumber>30123456</exampleNumber>
5781       </fixedLine>
5782       <mobile>
5783         <!-- According to
5784              http://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/BNetzA/Sachgebiete/Telekommunikation/Regulierung/Nummernverwaltung/Mobilfunkdienste/NummernplanMobileDienstepdf.pdf?__blob=publicationFile
5785              numbers beginning with 162, 163 and 17 can all be 10 or 11 digits long.
5786              -->
5787         <nationalNumberPattern>
5788           1(?:
5789             5[0-2579]\d{8}|
5790             6[023]\d{7,8}|
5791             7(?:
5792               [0-57-9]\d?|
5793               6\d
5794             )\d{7}
5795           )
5796         </nationalNumberPattern>
5797         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5798         <exampleNumber>15123456789</exampleNumber>
5799       </mobile>
5800       <pager>
5801         <nationalNumberPattern>
5802           16(?:
5803             4\d{1,10}|
5804             [89]\d{1,11}
5805           )
5806         </nationalNumberPattern>
5807         <possibleNumberPattern>\d{4,14}</possibleNumberPattern>
5808         <exampleNumber>16412345</exampleNumber>
5809       </pager>
5810       <tollFree>
5811         <nationalNumberPattern>800\d{7,12}</nationalNumberPattern>
5812         <possibleNumberPattern>\d{10,15}</possibleNumberPattern>
5813         <exampleNumber>8001234567890</exampleNumber>
5814       </tollFree>
5815       <premiumRate>
5816         <nationalNumberPattern>
5817           900(?:
5818             [135]\d{6}|
5819             9\d{7}
5820           )
5821         </nationalNumberPattern>
5822         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
5823         <exampleNumber>9001234567</exampleNumber>
5824       </premiumRate>
5825       <sharedCost>
5826         <nationalNumberPattern>180\d{5,11}</nationalNumberPattern>
5827         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5828         <exampleNumber>18012345</exampleNumber>
5829       </sharedCost>
5830       <personalNumber>
5831         <nationalNumberPattern>700\d{8}</nationalNumberPattern>
5832         <possibleNumberPattern>\d{11}</possibleNumberPattern>
5833         <exampleNumber>70012345678</exampleNumber>
5834       </personalNumber>
5835       <uan>
5836         <!-- Using UAN for numbers marked in the plan as being assigned to International Virtual
5837              Private Networks (0181) & User Groups (018[2-9]). These seem in practice to be assigned
5838              to companies. More information here: http://de.wikipedia.org/wiki/Vorwahl_01 -->
5839         <nationalNumberPattern>
5840           18(?:
5841             1\d{5,11}|
5842             [2-9]\d{8}
5843           )
5844         </nationalNumberPattern>
5845         <possibleNumberPattern>\d{8,14}</possibleNumberPattern>
5846         <exampleNumber>18500123456</exampleNumber>
5847       </uan>
5848       <voicemail>
5849         <nationalNumberPattern>17799\d{7,8}</nationalNumberPattern>
5850         <possibleNumberPattern>\d{12,13}</possibleNumberPattern>
5851         <exampleNumber>177991234567</exampleNumber>
5852       </voicemail>
5853       <emergency>
5854         <nationalNumberPattern>11[02]</nationalNumberPattern>
5855         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5856         <exampleNumber>112</exampleNumber>
5857       </emergency>
5858     </territory>
5859
5860     <!-- Djibouti -->
5861     <!-- http://www.itu.int/oth/T020200003A/en -->
5862     <territory id="DJ" countryCode="253" internationalPrefix="00">
5863       <availableFormats>
5864         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5865           <format>$1 $2 $3 $4</format>
5866         </numberFormat>
5867       </availableFormats>
5868       <generalDesc>
5869         <nationalNumberPattern>[27]\d{7}</nationalNumberPattern>
5870         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5871       </generalDesc>
5872       <fixedLine>
5873         <!-- Includes "Numéro long CDMA fixe" numbers. -->
5874         <nationalNumberPattern>
5875           2(?:
5876             1[2-5]|
5877             7[45]
5878           )\d{5}
5879         </nationalNumberPattern>
5880         <exampleNumber>21360003</exampleNumber>
5881       </fixedLine>
5882       <mobile>
5883         <nationalNumberPattern>77[6-8]\d{5}</nationalNumberPattern>
5884         <exampleNumber>77831001</exampleNumber>
5885       </mobile>
5886       <emergency>
5887         <nationalNumberPattern>1[78]</nationalNumberPattern>
5888         <possibleNumberPattern>\d{2}</possibleNumberPattern>
5889         <exampleNumber>17</exampleNumber>
5890       </emergency>
5891     </territory>
5892
5893     <!-- Denmark -->
5894     <!-- http://www.dba.erhvervsstyrelsen.dk/numbering-lists -->
5895     <territory id="DK" countryCode="45" internationalPrefix="00">
5896       <availableFormats>
5897         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
5898           <format>$1 $2 $3 $4</format>
5899         </numberFormat>
5900       </availableFormats>
5901       <generalDesc>
5902         <nationalNumberPattern>[2-9]\d{7}</nationalNumberPattern>
5903         <possibleNumberPattern>\d{8}</possibleNumberPattern>
5904       </generalDesc>
5905       <!-- Note that "mainly mobile" and "mainly fixed-line" are put under both number types to be
5906            safe. -->
5907       <fixedLine>
5908         <nationalNumberPattern>
5909           (?:
5910             [2-7]\d|
5911             8[126-9]|
5912             9[126-9]
5913           )\d{6}
5914         </nationalNumberPattern>
5915         <exampleNumber>32123456</exampleNumber>
5916       </fixedLine>
5917       <mobile>
5918         <nationalNumberPattern>
5919           (?:
5920             [2-7]\d|
5921             8[126-9]|
5922             9[126-9]
5923           )\d{6}
5924         </nationalNumberPattern>
5925         <exampleNumber>20123456</exampleNumber>
5926       </mobile>
5927       <tollFree>
5928         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
5929         <exampleNumber>80123456</exampleNumber>
5930       </tollFree>
5931       <premiumRate>
5932         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
5933         <exampleNumber>90123456</exampleNumber>
5934       </premiumRate>
5935       <emergency>
5936         <nationalNumberPattern>112</nationalNumberPattern>
5937         <possibleNumberPattern>\d{3}</possibleNumberPattern>
5938         <exampleNumber>112</exampleNumber>
5939       </emergency>
5940     </territory>
5941
5942     <!-- Dominica -->
5943     <!-- http://www.itu.int/oth/T020200003B/en -->
5944     <territory id="DM" countryCode="1" leadingDigits="767" nationalPrefix="1"
5945                internationalPrefix="011">
5946       <generalDesc>
5947         <!-- NANPA country - uses US formatting rules -->
5948         <nationalNumberPattern>[57-9]\d{9}</nationalNumberPattern>
5949         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
5950       </generalDesc>
5951       <fixedLine>
5952         <nationalNumberPattern>
5953           767(?:
5954             2(?:
5955               55|
5956               66
5957             )|
5958             4(?:
5959               2[01]|
5960               4[0-25-9]
5961             )|
5962             50[0-4]
5963           )\d{4}
5964         </nationalNumberPattern>
5965         <exampleNumber>7674201234</exampleNumber>
5966       </fixedLine>
5967       <mobile>
5968         <!-- Adding 61[237], 285 and 295 since online numbers have been found with this prefix. -->
5969         <nationalNumberPattern>
5970           767(?:
5971             2(?:
5972               [234689]5|
5973               7[5-7]
5974             )|
5975             31[5-7]|
5976             61[2-7]
5977           )\d{4}
5978         </nationalNumberPattern>
5979         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5980         <exampleNumber>7672251234</exampleNumber>
5981       </mobile>
5982       <tollFree>
5983         <nationalNumberPattern>
5984           8(?:
5985             00|
5986             55|
5987             66|
5988             77|
5989             88
5990           )[2-9]\d{6}
5991         </nationalNumberPattern>
5992         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5993         <exampleNumber>8002123456</exampleNumber>
5994       </tollFree>
5995       <premiumRate>
5996         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
5997         <possibleNumberPattern>\d{10}</possibleNumberPattern>
5998         <exampleNumber>9002123456</exampleNumber>
5999       </premiumRate>
6000       <personalNumber>
6001         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
6002         <nationalNumberPattern>
6003           5(?:
6004             00|
6005             33|
6006             44
6007           )[2-9]\d{6}
6008         </nationalNumberPattern>
6009         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6010         <exampleNumber>5002345678</exampleNumber>
6011       </personalNumber>
6012       <emergency>
6013         <!-- http://barbados.usembassy.gov/emergency-dominica.html -->
6014         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1102.html -->
6015         <nationalNumberPattern>
6016           333|
6017           9(?:
6018             11|
6019             99
6020           )
6021         </nationalNumberPattern>
6022         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6023         <exampleNumber>999</exampleNumber>
6024       </emergency>
6025     </territory>
6026
6027     <!-- Dominican Rep. -->
6028     <!-- http://www.itu.int/oth/T020200003C/en -->
6029     <territory id="DO" countryCode="1" leadingDigits="8[024]9" nationalPrefix="1"
6030                internationalPrefix="011">
6031       <generalDesc>
6032         <!-- NANPA country - uses US formatting rules -->
6033         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
6034         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
6035       </generalDesc>
6036       <fixedLine>
6037         <!-- The ITU data seems to be somewhat incomplete. We ensure that the fully-specified mobile
6038              prefixes in the document are classified as such by excluding them from the fixed-line
6039              ranges, but other than this have a generic rule. -->
6040         <nationalNumberPattern>
6041           8(?:
6042             [04]9[2-9]\d{6}|
6043             29(?:
6044               2(?:
6045                 [0-59]\d|
6046                 6[04-9]|
6047                 7[0-27]|
6048                 8[0237-9]
6049               )|
6050               3(?:
6051                 [0-35-9]\d|
6052                 4[7-9]
6053               )|
6054               [45]\d{2}|
6055               6(?:
6056                 [0-27-9]\d|
6057                 [3-5][1-9]|
6058                 6[0135-8]
6059               )|
6060               7(?:
6061                 0[013-9]|
6062                 [1-37]\d|
6063                 4[1-35689]|
6064                 5[1-4689]|
6065                 6[1-57-9]|
6066                 8[1-79]|
6067                 9[1-8]
6068               )|
6069               8(?:
6070                 0[146-9]|
6071                 1[0-48]|
6072                 [248]\d|
6073                 3[1-79]|
6074                 5[01589]|
6075                 6[013-68]|
6076                 7[124-8]|
6077                 9[0-8]
6078               )|
6079               9(?:
6080                 [0-24]\d|
6081                 3[02-46-9]|
6082                 5[0-79]|
6083                 60|
6084                 7[0169]|
6085                 8[57-9]|
6086                 9[02-9]
6087               )
6088             )\d{4}
6089           )
6090         </nationalNumberPattern>
6091         <exampleNumber>8092345678</exampleNumber>
6092       </fixedLine>
6093       <mobile>
6094         <nationalNumberPattern>8[024]9[2-9]\d{6}</nationalNumberPattern>
6095         <exampleNumber>8092345678</exampleNumber>
6096       </mobile>
6097       <tollFree>
6098         <nationalNumberPattern>
6099           8(?:
6100             00|
6101             55|
6102             66|
6103             77|
6104             88
6105           )[2-9]\d{6}
6106         </nationalNumberPattern>
6107         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6108         <exampleNumber>8002123456</exampleNumber>
6109       </tollFree>
6110       <premiumRate>
6111         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
6112         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6113         <exampleNumber>9002123456</exampleNumber>
6114       </premiumRate>
6115       <personalNumber>
6116         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
6117         <nationalNumberPattern>
6118           5(?:
6119             00|
6120             33|
6121             44
6122           )[2-9]\d{6}
6123         </nationalNumberPattern>
6124         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6125         <exampleNumber>5002345678</exampleNumber>
6126       </personalNumber>
6127       <emergency>
6128         <nationalNumberPattern>
6129           112|
6130           911
6131         </nationalNumberPattern>
6132         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6133         <exampleNumber>911</exampleNumber>
6134       </emergency>
6135    </territory>
6136
6137     <!-- Algeria -->
6138     <!-- http://www.itu.int/oth/T0202000003/en -->
6139     <!-- www.arpt.dz -->
6140     <territory id="DZ" countryCode="213" internationalPrefix="00"
6141                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6142       <availableFormats>
6143         <!-- Formatting from www.pagesjaunes-dz.com. -->
6144         <numberFormat pattern="([1-4]\d)(\d{2})(\d{2})(\d{2})">
6145           <leadingDigits>[1-4]</leadingDigits>
6146           <format>$1 $2 $3 $4</format>
6147         </numberFormat>
6148         <numberFormat pattern="([5-8]\d{2})(\d{2})(\d{2})(\d{2})">
6149           <leadingDigits>[5-8]</leadingDigits>
6150           <format>$1 $2 $3 $4</format>
6151         </numberFormat>
6152         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
6153           <leadingDigits>9</leadingDigits>
6154           <format>$1 $2 $3 $4</format>
6155         </numberFormat>
6156       </availableFormats>
6157       <generalDesc>
6158         <nationalNumberPattern>
6159           (?:
6160             [1-4]|
6161             [5-9]\d
6162           )\d{7}
6163         </nationalNumberPattern>
6164         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
6165       </generalDesc>
6166       <fixedLine>
6167         <!-- We include the VSAT lines here. -->
6168         <nationalNumberPattern>
6169           (?:
6170             1\d|
6171             2[014-79]|
6172             3[0-8]|
6173             4[0135689]
6174           )\d{6}|
6175           9619\d{5}
6176         </nationalNumberPattern>
6177         <exampleNumber>12345678</exampleNumber>
6178       </fixedLine>
6179       <mobile>
6180         <!-- Adding 65 and 78 from numbers found online. Also, prefix 670 is added since the carrier
6181              Mobilis Algeria provided it, and 54 for Nedjma.-->
6182         <nationalNumberPattern>
6183           (?:
6184             5[4-6]|
6185             7[7-9]
6186           )\d{7}|
6187           6(?:
6188             [569]\d|
6189             70
6190           )\d{6}
6191         </nationalNumberPattern>
6192         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6193         <exampleNumber>551234567</exampleNumber>
6194       </mobile>
6195       <tollFree>
6196         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
6197         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6198         <exampleNumber>800123456</exampleNumber>
6199       </tollFree>
6200       <premiumRate>
6201         <nationalNumberPattern>80[3-689]1\d{5}</nationalNumberPattern>
6202         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6203         <exampleNumber>808123456</exampleNumber>
6204       </premiumRate>
6205       <!-- The Algerian plan doesn't specify where the costs start to be considered "premium", so we
6206            draw an arbitrary line here and say that from 50 Da up they will be considered premium.
6207            -->
6208       <sharedCost>
6209         <nationalNumberPattern>80[12]1\d{5}</nationalNumberPattern>
6210         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6211         <exampleNumber>801123456</exampleNumber>
6212       </sharedCost>
6213       <voip>
6214         <nationalNumberPattern>98[23]\d{6}</nationalNumberPattern>
6215         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6216         <exampleNumber>983123456</exampleNumber>
6217       </voip>
6218       <emergency>
6219         <nationalNumberPattern>1[47]</nationalNumberPattern>
6220         <possibleNumberPattern>\d{2}</possibleNumberPattern>
6221         <exampleNumber>17</exampleNumber>
6222       </emergency>
6223    </territory>
6224
6225     <!-- Ecuador -->
6226     <!-- http://en.wikipedia.org/wiki/+593 -->
6227     <!-- http://www.conatel.gob.ec/site_conatel/index.php?option=com_content&view=category&layout=blog&id=52&Itemid=153
6228          -->
6229     <!-- http://www.itu.int/oth/T020200003D/en -->
6230     <territory id="EC" countryCode="593" internationalPrefix="00"
6231                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
6232       <availableFormats>
6233         <numberFormat pattern="(\d)(\d{3})(\d{4})">
6234           <leadingDigits>
6235             [247]|
6236             [356][2-8]
6237           </leadingDigits>
6238           <format>$1 $2-$3</format>
6239           <intlFormat>$1-$2-$3</intlFormat>
6240         </numberFormat>
6241         <!-- Formatting for the new longer mobile numbers comes from the advertisements about the
6242              change on the www.conatel.gob.ec site. -->
6243         <numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
6244           <leadingDigits>9</leadingDigits>
6245           <format>$1 $2 $3</format>
6246         </numberFormat>
6247         <numberFormat pattern="(1800)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
6248           <leadingDigits>1</leadingDigits>
6249           <format>$1 $2 $3</format>
6250         </numberFormat>
6251       </availableFormats>
6252       <generalDesc>
6253         <nationalNumberPattern>
6254           1\d{9,10}|
6255           [2-8]\d{7}|
6256           9\d{8}
6257         </nationalNumberPattern>
6258         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
6259       </generalDesc>
6260       <fixedLine>
6261         <nationalNumberPattern>[2-7][2-7]\d{6}</nationalNumberPattern>
6262         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6263         <exampleNumber>22123456</exampleNumber>
6264       </fixedLine>
6265       <mobile>
6266         <nationalNumberPattern>
6267           9(?:
6268             39|
6269             [4-6][89]|
6270             7[7-9]|
6271             [89]\d
6272           )\d{6}
6273         </nationalNumberPattern>
6274         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6275         <exampleNumber>991234567</exampleNumber>
6276       </mobile>
6277       <tollFree>
6278         <nationalNumberPattern>1800\d{6,7}</nationalNumberPattern>
6279         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
6280         <exampleNumber>18001234567</exampleNumber>
6281       </tollFree>
6282       <voip>
6283         <nationalNumberPattern>[2-7]890\d{4}</nationalNumberPattern>
6284         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6285         <exampleNumber>28901234</exampleNumber>
6286       </voip>
6287       <emergency>
6288         <nationalNumberPattern>
6289           1(?:
6290             0[12]|
6291             12
6292           )|
6293           911
6294         </nationalNumberPattern>
6295         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6296         <exampleNumber>911</exampleNumber>
6297       </emergency>
6298     </territory>
6299
6300     <!-- Estonia -->
6301     <!-- http://www.itu.int/oth/T0202000043/en -->
6302     <!-- http://www.tja.ee/public/Legislation_side/Numbering_/Estonian_NP_eng.htm -->
6303     <territory id="EE" countryCode="372" internationalPrefix="00">
6304       <availableFormats>
6305         <numberFormat pattern="([3-79]\d{2})(\d{4})">
6306           <leadingDigits>
6307             [369]|
6308             4[3-8]|
6309             5(?:
6310               [0-2]|
6311               5[0-478]|
6312               6[45]
6313             )|
6314             7[1-9]
6315           </leadingDigits>
6316           <leadingDigits>
6317             [369]|
6318             4[3-8]|
6319             5(?:
6320               [02]|
6321               1(?:
6322                 [0-8]|
6323                 95
6324               )|
6325               5[0-478]|
6326               6(?:
6327                 4[0-4]|
6328                 5[1-589]
6329               )
6330             )|
6331             7[1-9]
6332           </leadingDigits>
6333           <format>$1 $2</format>
6334         </numberFormat>
6335         <numberFormat pattern="(70)(\d{2})(\d{4})">
6336           <leadingDigits>70</leadingDigits>
6337           <format>$1 $2 $3</format>
6338         </numberFormat>
6339         <numberFormat pattern="(8000)(\d{3})(\d{3})">
6340           <leadingDigits>800</leadingDigits>
6341           <leadingDigits>8000</leadingDigits>
6342           <format>$1 $2 $3</format>
6343         </numberFormat>
6344         <numberFormat pattern="([458]\d{3})(\d{3,4})">
6345           <leadingDigits>
6346             40|
6347             5|
6348             8(?:
6349               00|
6350               [1-5]
6351             )
6352           </leadingDigits>
6353           <leadingDigits>
6354             40|
6355             5|
6356             8(?:
6357               00[1-9]|
6358               [1-5]
6359             )
6360           </leadingDigits>
6361           <format>$1 $2</format>
6362         </numberFormat>
6363       </availableFormats>
6364       <generalDesc>
6365         <nationalNumberPattern>
6366           1\d{3,4}|
6367           [3-9]\d{6,7}|
6368           800\d{6,7}
6369         </nationalNumberPattern>
6370         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
6371       </generalDesc>
6372       <noInternationalDialling>
6373         <nationalNumberPattern>
6374           1\d{3,4}|
6375           800[2-9]\d{3}
6376         </nationalNumberPattern>
6377         <possibleNumberPattern>\d{4,7}</possibleNumberPattern>
6378         <exampleNumber>8002123</exampleNumber>
6379       </noInternationalDialling>
6380       <fixedLine>
6381         <!-- Supporting eFax numbers here as well. -->
6382         <nationalNumberPattern>
6383           (?:
6384             3[23589]|
6385             4(?:
6386               0\d|
6387               [3-8]
6388             )|
6389             6\d|
6390             7[1-9]|
6391             88
6392           )\d{5}
6393         </nationalNumberPattern>
6394         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6395         <exampleNumber>3212345</exampleNumber>
6396       </fixedLine>
6397       <mobile>
6398         <!-- 7 digit mobile numbers currently in use with special prefixes are preserved - new
6399              numbers are 8 digits. -->
6400         <nationalNumberPattern>
6401           (?:
6402             5\d|
6403             8[1-5]
6404           )\d{6}|
6405           5(?:
6406             [02]\d{2}|
6407             1(?:
6408               [0-8]\d|
6409               95
6410             )|
6411             5[0-478]\d|
6412             64[0-4]|
6413             65[1-589]
6414           )\d{3}
6415         </nationalNumberPattern>
6416         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
6417         <exampleNumber>51234567</exampleNumber>
6418       </mobile>
6419       <tollFree>
6420         <nationalNumberPattern>
6421           800(?:
6422             0\d{3}|
6423             1\d|
6424             [2-9]
6425           )\d{3}
6426         </nationalNumberPattern>
6427         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
6428         <exampleNumber>80012345</exampleNumber>
6429       </tollFree>
6430       <premiumRate>
6431         <nationalNumberPattern>900\d{4}</nationalNumberPattern>
6432         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6433         <exampleNumber>9001234</exampleNumber>
6434       </premiumRate>
6435       <personalNumber>
6436         <nationalNumberPattern>70[0-2]\d{5}</nationalNumberPattern>
6437         <possibleNumberPattern>\d{8}</possibleNumberPattern>
6438         <exampleNumber>70012345</exampleNumber>
6439       </personalNumber>
6440       <uan>
6441         <!-- All 4-5 digit numbers listed in the plan as being a "short number for a service" are
6442              included here. -->
6443         <nationalNumberPattern>
6444           1(?:
6445             2[01245]|
6446             3[0-6]|
6447             4[1-489]|
6448             5[0-59]|
6449             6[1-46-9]|
6450             7[0-27-9]|
6451             8[189]|
6452             9[012]
6453           )\d{1,2}
6454         </nationalNumberPattern>
6455         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
6456         <exampleNumber>12123</exampleNumber>
6457       </uan>
6458       <emergency>
6459         <nationalNumberPattern>11[02]</nationalNumberPattern>
6460         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6461         <exampleNumber>112</exampleNumber>
6462       </emergency>
6463     </territory>
6464
6465     <!-- Egypt -->
6466     <!-- http://www.itu.int/oth/T020200003E/en -->
6467     <territory id="EG" countryCode="20" internationalPrefix="00"
6468                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6469        <availableFormats>
6470          <!-- Note that no explicit formatting rule is here for 5-digit numbers starting with a 16
6471               or 19. These are formatted without national prefix, as a block, so do not need to be
6472               listed here. -->
6473          <numberFormat pattern="(\d)(\d{7,8})">
6474            <leadingDigits>[23]</leadingDigits>
6475            <format>$1 $2</format>
6476          </numberFormat>
6477          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
6478            <leadingDigits>
6479              1[012]|
6480              [89]00
6481            </leadingDigits>
6482            <format>$1 $2 $3</format>
6483          </numberFormat>
6484          <numberFormat pattern="(\d{2})(\d{6,7})">
6485            <leadingDigits>
6486              1(?:
6487                3|
6488                5[23]
6489              )|
6490              [4-6]|
6491              [89][2-9]
6492            </leadingDigits>
6493            <format>$1 $2</format>
6494          </numberFormat>
6495        </availableFormats>
6496       <generalDesc>
6497         <nationalNumberPattern>
6498           1\d{4,9}|
6499           [2456]\d{8}|
6500           3\d{7}|
6501           [89]\d{8,9}
6502         </nationalNumberPattern>
6503         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
6504       </generalDesc>
6505       <fixedLine>
6506         <!-- Short numbers used for businesses (starting with 16 or 19) are covered here. Note also
6507              that the plan says numbers starting with 15 should be followed by seven digit
6508              subscriber numbers, but all numbers we have found online are in fact six digit.
6509              Subscriber numbers starting with 5 are also permitted for the area codes 040, with 5, 6
6510              and 7 for the area code 050, with 5 and 7 for 082, with 6 for 084, with 7 for 086 and
6511              092 and with 5 and 6 for 96. -->
6512         <nationalNumberPattern>
6513           (?:
6514             1(
6515               3[23]\d|
6516               5[23]
6517             )|
6518             2[2-4]\d{2}|
6519             3\d{2}|
6520             4(?:
6521               0[2-5]|
6522               [578][23]|
6523               64
6524             )\d|
6525             5(?:
6526               0[2-7]|
6527               [57][23]
6528             )\d|
6529             6[24-689]3\d|
6530             8(?:
6531               2[2-57]|
6532               4[26]|
6533               6[237]|
6534               8[2-4]
6535             )\d|
6536             9(?:
6537               2[27]|
6538               3[24]|
6539               52|
6540               6[2356]|
6541               7[2-4]
6542             )\d
6543           )\d{5}|
6544           1[69]\d{3}
6545         </nationalNumberPattern>
6546         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
6547         <exampleNumber>234567890</exampleNumber>
6548       </fixedLine>
6549       <mobile>
6550         <!-- Adding the extra prefixes 102 and 121 from user reports that Vodafone and Mobinil have
6551              started allocating numbers beginning with these prefixes, along with 115 from numbers
6552              found online. -->
6553         <nationalNumberPattern>
6554           1(?:
6555             0[01269]|
6556             1[1245]|
6557             2[0-278]
6558           )\d{7}
6559         </nationalNumberPattern>
6560         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6561         <exampleNumber>1001234567</exampleNumber>
6562       </mobile>
6563       <tollFree>
6564         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
6565         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6566         <exampleNumber>8001234567</exampleNumber>
6567       </tollFree>
6568       <premiumRate>
6569         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
6570         <possibleNumberPattern>\d{10}</possibleNumberPattern>
6571         <exampleNumber>9001234567</exampleNumber>
6572       </premiumRate>
6573       <emergency>
6574         <nationalNumberPattern>
6575           1(?:
6576             2[23]|
6577             80
6578           )
6579         </nationalNumberPattern>
6580         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6581         <exampleNumber>122</exampleNumber>
6582       </emergency>
6583     </territory>
6584
6585     <!-- Western Sahara -->
6586     <!-- Country calling code shared with Morocco (MA). -->
6587     <!-- Two area codes are defined in the Morocco ITU document; 05288 XXXXX and 05289 XXXXX -->
6588     <!-- http://www.itu.int/oth/T0202000090/en -->
6589     <territory id="EH" countryCode="212" leadingDigits="528[89]" internationalPrefix="00"
6590                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6591       <!-- Uses MA formatting rules and shares general description
6592            (non-geographical numbers for Morocco are still valid). -->
6593       <generalDesc>
6594         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
6595         <!-- Closed numbering plan. -->
6596         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6597       </generalDesc>
6598       <fixedLine>
6599         <nationalNumberPattern>528[89]\d{5}</nationalNumberPattern>
6600         <exampleNumber>528812345</exampleNumber>
6601       </fixedLine>
6602       <!-- The following sections are copied verbatim from Morocco to allow these non-geographical
6603            numbers to be recognized as available from within Western Sahara. -->
6604       <mobile>
6605         <!-- Prefixes 60[1-578], 62[01457-9], 63[04-8] and 68[01] are from numbers found online,
6606              bug-reports, and information provided directly by the carriers. -->
6607         <nationalNumberPattern>
6608           6(?:
6609             0[0-8]|
6610             [124-7]\d|
6611             3[03-8]|
6612             8[01]|
6613             99
6614           )\d{6}
6615         </nationalNumberPattern>
6616         <exampleNumber>650123456</exampleNumber>
6617       </mobile>
6618       <tollFree>
6619         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
6620         <exampleNumber>801234567</exampleNumber>
6621       </tollFree>
6622       <premiumRate>
6623         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
6624         <exampleNumber>891234567</exampleNumber>
6625       </premiumRate>
6626       <emergency>
6627         <nationalNumberPattern>
6628           1(?:
6629             [59]|
6630             77
6631           )
6632         </nationalNumberPattern>
6633         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
6634         <exampleNumber>15</exampleNumber>
6635       </emergency>
6636     </territory>
6637
6638     <!-- Eritrea -->
6639     <!-- http://www.itu.int/oth/T0202000042/en -->
6640     <territory id="ER" countryCode="291" internationalPrefix="00"
6641                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6642       <availableFormats>
6643         <numberFormat pattern="(\d)(\d{3})(\d{3})">
6644           <format>$1 $2 $3</format>
6645         </numberFormat>
6646       </availableFormats>
6647       <generalDesc>
6648         <nationalNumberPattern>[178]\d{6}</nationalNumberPattern>
6649         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
6650       </generalDesc>
6651       <fixedLine>
6652         <nationalNumberPattern>
6653           1(?:
6654             1[12568]|
6655             20|
6656             40|
6657             55|
6658             6[146]
6659           )\d{4}|
6660           8\d{6}
6661         </nationalNumberPattern>
6662         <exampleNumber>8370362</exampleNumber><!-- Test number from plan. -->
6663       </fixedLine>
6664       <mobile>
6665         <!-- It is unclear in the plan whether the 07 mobile prefix superseded the previous 017[1-3]
6666              numbers or was in addition to them, so we support both here. -->
6667         <nationalNumberPattern>
6668           17[1-3]\d{4}|
6669           7\d{6}
6670         </nationalNumberPattern>
6671         <possibleNumberPattern>\d{7}</possibleNumberPattern>
6672         <exampleNumber>7123456</exampleNumber>
6673       </mobile>
6674       <!-- No emergency numbers information can be found. -->
6675     </territory>
6676
6677     <!-- Spain -->
6678     <!-- http://www.mityc.es/telecomunicaciones/es-ES/Servicios/Numeracion/Paginas/Plan.aspx -->
6679     <territory id="ES" countryCode="34" internationalPrefix="00">
6680       <availableFormats>
6681         <numberFormat pattern="([5-9]\d{2})(\d{2})(\d{2})(\d{2})">
6682           <format>$1 $2 $3 $4</format>
6683         </numberFormat>
6684       </availableFormats>
6685       <generalDesc>
6686         <nationalNumberPattern>[5-9]\d{8}</nationalNumberPattern>
6687         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6688       </generalDesc>
6689       <!-- The pattern is complex because the Lleida Networks mobile ranges are inside the
6690            fixed-line ranges. -->
6691       <fixedLine>
6692         <nationalNumberPattern>
6693           8(?:
6694             [13]0|
6695             [28][0-8]|
6696             [47][1-9]|
6697             5[01346-9]|
6698             6[0457-9]
6699           )\d{6}|
6700           9(?:
6701             [1238][0-8]\d{6}|
6702             4[1-9]\d{6}|
6703             5\d{7}|
6704             6(?:
6705               [0-8]\d{6}|
6706               9(?:
6707                 0(?:
6708                   [0-57-9]\d{4}|
6709                   6(?:
6710                     0[0-8]|
6711                     1[1-9]|
6712                     [2-9]\d
6713                   )\d{2}
6714                 )|
6715                 [1-9]\d{5}
6716               )
6717             )|
6718             7(?:
6719               [124-9]\d{2}|
6720               3(?:
6721                 [0-8]\d|
6722                 9[1-9]
6723               )
6724             )\d{4}
6725           )
6726         </nationalNumberPattern>
6727         <exampleNumber>810123456</exampleNumber>
6728       </fixedLine>
6729       <!-- The ranges 969060900 to 969061099 and 973900000 to 973909999 are mobile according to
6730            information received from Lleida Networks. -->
6731       <mobile>
6732         <nationalNumberPattern>
6733           (?:
6734             6\d{6}|
6735             7[1-4]\d{5}|
6736             9(?:
6737               6906(?:
6738                 09|
6739                 10
6740               )|
6741               7390\d{2}
6742             )
6743           )\d{2}
6744         </nationalNumberPattern>
6745         <exampleNumber>612345678</exampleNumber>
6746       </mobile>
6747       <tollFree>
6748         <nationalNumberPattern>[89]00\d{6}</nationalNumberPattern>
6749         <exampleNumber>800123456</exampleNumber>
6750       </tollFree>
6751       <premiumRate>
6752         <nationalNumberPattern>80[367]\d{6}</nationalNumberPattern>
6753         <exampleNumber>803123456</exampleNumber>
6754       </premiumRate>
6755       <sharedCost>
6756         <nationalNumberPattern>90[12]\d{6}</nationalNumberPattern>
6757         <exampleNumber>901123456</exampleNumber>
6758       </sharedCost>
6759       <personalNumber>
6760         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
6761         <exampleNumber>701234567</exampleNumber>
6762       </personalNumber>
6763       <!-- Modelling non-geographic nomadic numbers as UAN. -->
6764       <uan>
6765         <nationalNumberPattern>51\d{7}</nationalNumberPattern>
6766         <exampleNumber>511234567</exampleNumber>
6767       </uan>
6768       <emergency>
6769         <!-- We include the Civil Guard here since it seems to perform similar duties as the police
6770              force. -->
6771         <nationalNumberPattern>
6772           0(?:
6773             [69][12]|
6774             8[05]
6775           )|
6776           112
6777         </nationalNumberPattern>
6778         <possibleNumberPattern>\d{3}</possibleNumberPattern>
6779         <exampleNumber>112</exampleNumber>
6780       </emergency>
6781     </territory>
6782
6783     <!-- Ethiopia -->
6784     <!-- http://www.itu.int/oth/T0202000044/en -->
6785     <territory id="ET" countryCode="251" internationalPrefix="00"
6786                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
6787       <availableFormats>
6788         <numberFormat pattern="([1-59]\d)(\d{3})(\d{4})">
6789           <format>$1 $2 $3</format>
6790         </numberFormat>
6791       </availableFormats>
6792       <generalDesc>
6793         <nationalNumberPattern>[1-59]\d{8}</nationalNumberPattern>
6794         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
6795       </generalDesc>
6796       <fixedLine>
6797         <nationalNumberPattern>
6798           (?:
6799             11(?:
6800               1(?:
6801                 1[124]|
6802                 2[2-57]|
6803                 3[1-5]|
6804                 5[5-8]|
6805                 8[6-8]
6806               )|
6807               2(?:
6808                 13|
6809                 3[6-8]|
6810                 5[89]|
6811                 7[05-9]|
6812                 8[2-6]
6813               )|
6814               3(?:
6815                 2[01]|
6816                 3[0-289]|
6817                 4[1289]|
6818                 7[1-4]|
6819                 87
6820               )|
6821               4(?:
6822                 1[69]|
6823                 3[2-49]|
6824                 4[0-3]|
6825                 6[5-8]
6826               )|
6827               5(?:
6828                 1[57]|
6829                 44|
6830                 5[0-4]
6831               )|
6832               6(?:
6833                 18|
6834                 2[69]|
6835                 4[5-7]|
6836                 5[1-5]|
6837                 6[0-59]|
6838                 8[015-8]
6839               )
6840             )|
6841             2(?:
6842               2(?:
6843                 11[1-9]|
6844                 22[0-7]|
6845                 33\d|
6846                 44[1467]|
6847                 66[1-68]
6848               )|
6849               5(?:
6850                 11[124-6]|
6851                 33[2-8]|
6852                 44[1467]|
6853                 55[14]|
6854                 66[1-3679]|
6855                 77[124-79]|
6856                 880
6857               )
6858             )|
6859             3(?:
6860               3(?:
6861                 11[0-46-8]|
6862                 22[0-6]|
6863                 33[0134689]|
6864                 44[04]|
6865                 55[0-6]|
6866                 66[01467]
6867               )|
6868               4(?:
6869                 44[0-8]|
6870                 55[0-69]|
6871                 66[0-3]|
6872                 77[1-5]
6873               )
6874             )|
6875             4(?:
6876               6(?:
6877                 22[0-24-7]|
6878                 33[1-5]|
6879                 44[13-69]|
6880                 55[14-689]|
6881                 660|
6882                 88[1-4]
6883               )|
6884               7(?:
6885                 11[1-9]|
6886                 22[1-9]|
6887                 33[13-7]|
6888                 44[13-6]|
6889                 55[1-689]
6890               )
6891             )|
6892             5(?:
6893               7(?:
6894                 227|
6895                 55[05]|
6896                 (?:
6897                   66|
6898                   77
6899                 )[14-8]
6900               )|
6901               8(?:
6902                 11[149]|
6903                 22[013-79]|
6904                 33[0-68]|
6905                 44[013-8]|
6906                 550|
6907                 66[1-5]|
6908                 77\d
6909               )
6910             )
6911           )\d{4}
6912         </nationalNumberPattern>
6913         <exampleNumber>111112345</exampleNumber>
6914       </fixedLine>
6915       <mobile>
6916         <!-- The data here is not regularly updated by the Ethiopian authorities, and many more
6917              numbers are visible online than are reported in the ITU document. This pattern is
6918              therefore somewhat more relaxed than in the ITU document. According to the ETC, the
6919              prefix 93 is assigned to Addis Ababa Mobile and 95[89] to some CDMA providers. -->
6920         <nationalNumberPattern>
6921           9(?:
6922             [1-3]\d|
6923             5[89]
6924           )\d{6}
6925         </nationalNumberPattern>
6926         <possibleNumberPattern>\d{9}</possibleNumberPattern>
6927         <exampleNumber>911234567</exampleNumber>
6928       </mobile>
6929       <emergency>
6930         <!-- http://www.addisculturetourism.gov.et/en/component/k2/itemlist/category/64.html?layout=category -->
6931         <!-- http://www.netglobers.com/africa/ethiopia-emergency-numbers-in-ethiopia-.html -->
6932         <!-- http://www.addisababacity.gov.et/index.php?option=com_content&view=article&id=139&Itemid=136 -->
6933         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
6934         <!-- The 91, 92, and 93 numbers are for the city of Addis Ababa. -->
6935         <nationalNumberPattern>
6936           9(?:
6937             11?|
6938             [23]|
6939             9[17]
6940           )
6941         </nationalNumberPattern>
6942         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
6943         <exampleNumber>991</exampleNumber>
6944       </emergency>
6945     </territory>
6946
6947     <!-- Finland -->
6948     <!-- Metadata shared with Ã…land (AX) -->
6949     <!-- http://www.ficora.fi/en/index/palvelut/palvelutaiheittain/numerointi/numerotyypitjaalueet.html -->
6950     <territory id="FI" countryCode="358" internationalPrefix="00|99[049]" nationalPrefix="0"
6951                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true">
6952       <availableFormats>
6953         <numberFormat pattern="(\d{3})(\d{3,7})">
6954           <leadingDigits>
6955             (?:
6956               [1-3]00|
6957               [6-8]0
6958             )
6959           </leadingDigits>
6960           <format>$1 $2</format>
6961         </numberFormat>
6962         <numberFormat pattern="(\d{2})(\d{4,10})">
6963           <leadingDigits>
6964             2[09]|
6965             [14]|
6966             50|
6967             7[135]
6968           </leadingDigits>
6969           <format>$1 $2</format>
6970         </numberFormat>
6971         <numberFormat pattern="(\d)(\d{4,11})">
6972           <leadingDigits>
6973             [25689][1-8]|
6974             3
6975           </leadingDigits>
6976           <format>$1 $2</format>
6977         </numberFormat>
6978       </availableFormats>
6979       <generalDesc>
6980         <nationalNumberPattern>
6981           1\d{4,11}|
6982           [2-9]\d{4,10}
6983         </nationalNumberPattern>
6984         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
6985       </generalDesc>
6986       <noInternationalDialling>
6987         <!-- According to the national numbering plan, service numbers are in general not accessible
6988              from abroad, although 600/700/800 numbers may be. -->
6989         <nationalNumberPattern>
6990           [13]00\d{3,7}|
6991           2(?:
6992             0(?:
6993               0\d{3,7}|
6994               2[023]\d{1,6}|
6995               9[89]\d{1,6}
6996             )
6997           )|
6998           60(?:
6999             [12]\d{5,6}|
7000             6\d{7}
7001           )|
7002           7(?:
7003             1\d{7}|
7004             3\d{8}|
7005             5[03-9]\d{2,7}
7006           )
7007         </nationalNumberPattern>
7008         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
7009         <exampleNumber>100123</exampleNumber>
7010       </noInternationalDialling>
7011       <fixedLine>
7012         <!-- This is limited to geographic numbers - non-geographic nationwide subscriber numbers
7013              are listed under UAN. It also excludes Ã…land numbers. -->
7014         <nationalNumberPattern>
7015           1(?:
7016             [3569][1-8]\d{3,9}|
7017             [47]\d{5,10}
7018           )|
7019           2[1-8]\d{3,9}|
7020           3(?:
7021             [1-8]\d{3,9}|
7022             9\d{4,8}
7023           )|
7024           [5689][1-8]\d{3,9}
7025         </nationalNumberPattern>
7026         <exampleNumber>1312345678</exampleNumber>
7027       </fixedLine>
7028       <mobile>
7029         <nationalNumberPattern>
7030           4\d{5,10}|
7031           50\d{4,8}
7032         </nationalNumberPattern>
7033         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
7034         <exampleNumber>412345678</exampleNumber>
7035       </mobile>
7036       <tollFree>
7037         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
7038         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
7039         <exampleNumber>8001234567</exampleNumber>
7040       </tollFree>
7041       <premiumRate>
7042         <nationalNumberPattern>[67]00\d{5,6}</nationalNumberPattern>
7043         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
7044         <exampleNumber>600123456</exampleNumber>
7045       </premiumRate>
7046       <uan>
7047         <!-- Covers nationwide non-geographic numbers, and nationwide "service numbers", typically
7048              assigned to institutions such as universities, the national post, etc, where they are
7049              not otherwise classified as toll-free or premium-rate numbers. -->
7050         <nationalNumberPattern>
7051           [13]0\d{4,8}|
7052           2(?:
7053             0(?:
7054               [016-8]\d{3,7}|
7055               [2-59]\d{2,7}
7056             )|
7057             9\d{4,8}
7058           )|
7059           60(?:
7060             [12]\d{5,6}|
7061             6\d{7}
7062           )|
7063           7(?:
7064             1\d{7}|
7065             3\d{8}|
7066             5[03-9]\d{2,7}
7067           )
7068         </nationalNumberPattern>
7069         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
7070         <exampleNumber>10112345</exampleNumber>
7071       </uan>
7072       <emergency>
7073         <nationalNumberPattern>112</nationalNumberPattern>
7074         <possibleNumberPattern>\d{3}</possibleNumberPattern>
7075         <exampleNumber>112</exampleNumber>
7076       </emergency>
7077     </territory>
7078
7079     <!-- Fiji -->
7080     <!-- http://www.itu.int/oth/T0202000048/en -->
7081     <!-- www.tfl.com.fj -->
7082     <territory id="FJ" countryCode="679" internationalPrefix="0(?:0|52)"
7083                preferredInternationalPrefix="00" leadingZeroPossible="true">
7084       <availableFormats>
7085         <numberFormat pattern="(\d{3})(\d{4})">
7086           <leadingDigits>[36-9]</leadingDigits>
7087           <format>$1 $2</format>
7088         </numberFormat>
7089         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
7090           <leadingDigits>0</leadingDigits>
7091           <format>$1 $2 $3</format>
7092         </numberFormat>
7093       </availableFormats>
7094       <generalDesc>
7095         <nationalNumberPattern>
7096           [36-9]\d{6}|
7097           0\d{10}
7098         </nationalNumberPattern>
7099         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
7100       </generalDesc>
7101       <fixedLine>
7102         <!-- Adding the prefixes 30X, 31X and 62X, since numbers with these prefixes have been found
7103              online, including in the white pages. 35X and 85X were found in the exchanges listed on
7104              www.tfl.com.fj. -->
7105         <nationalNumberPattern>
7106           (?:
7107             3[0-5]|
7108             6[25-7]|
7109             8[58]
7110           )\d{5}
7111         </nationalNumberPattern>
7112         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7113         <exampleNumber>3212345</exampleNumber>
7114       </fixedLine>
7115       <mobile>
7116         <!-- Adding 7[67], 8[367], and 9[034678] from numbers found online and numbers where SMSs
7117              have been received from. Adding 9[15] and 84 from Vodafone Fiji IR21. -->
7118         <nationalNumberPattern>
7119           (?:
7120             7[0-467]|
7121             8[3467]|
7122             9\d
7123           )\d{5}
7124         </nationalNumberPattern>
7125         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7126         <exampleNumber>7012345</exampleNumber>
7127       </mobile>
7128       <tollFree>
7129         <!-- Information found on www.tfl.com.fj. It is not clear if these are internationally
7130              diallable, or if so, how. -->
7131         <nationalNumberPattern>0800\d{7}</nationalNumberPattern>
7132         <possibleNumberPattern>\d{11}</possibleNumberPattern>
7133         <exampleNumber>08001234567</exampleNumber>
7134       </tollFree>
7135       <emergency>
7136         <nationalNumberPattern>91[17]</nationalNumberPattern>
7137         <possibleNumberPattern>\d{3}</possibleNumberPattern>
7138         <exampleNumber>911</exampleNumber>
7139       </emergency>
7140     </territory>
7141
7142     <!-- Falkland Islands (Malvinas) -->
7143     <!-- http://www.itu.int/oth/T0202000046/en -->
7144     <territory id="FK" countryCode="500" internationalPrefix="00">
7145       <!-- All numbers are formatted together, as a block. -->
7146       <generalDesc>
7147         <nationalNumberPattern>[2-7]\d{4}</nationalNumberPattern>
7148         <possibleNumberPattern>\d{5}</possibleNumberPattern>
7149       </generalDesc>
7150       <fixedLine>
7151         <nationalNumberPattern>[2-47]\d{4}</nationalNumberPattern>
7152         <exampleNumber>31234</exampleNumber>
7153       </fixedLine>
7154       <mobile>
7155         <nationalNumberPattern>[56]\d{4}</nationalNumberPattern>
7156         <exampleNumber>51234</exampleNumber>
7157       </mobile>
7158       <emergency>
7159         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
7160         <nationalNumberPattern>999</nationalNumberPattern>
7161         <possibleNumberPattern>\d{3}</possibleNumberPattern>
7162         <exampleNumber>999</exampleNumber>
7163       </emergency>
7164     </territory>
7165
7166     <!-- Micronesia, Federated States of -->
7167     <!-- http://www.itu.int/oth/T020200008B/en -->
7168     <territory id="FM" countryCode="691" internationalPrefix="00">
7169       <availableFormats>
7170         <numberFormat pattern="(\d{3})(\d{4})">
7171           <format>$1 $2</format>
7172         </numberFormat>
7173       </availableFormats>
7174       <generalDesc>
7175         <nationalNumberPattern>[39]\d{6}</nationalNumberPattern>
7176         <possibleNumberPattern>\d{7}</possibleNumberPattern>
7177       </generalDesc>
7178       <fixedLine>
7179         <nationalNumberPattern>
7180             3[2357]0[1-9]\d{3}|
7181             9[2-6]\d{5}
7182         </nationalNumberPattern>
7183         <exampleNumber>3201234</exampleNumber>
7184       </fixedLine>
7185       <mobile>
7186         <!-- Note that most ranges are used for both fixed and mobile but numbers starting with 970
7187              are exclusively mobile. -->
7188         <nationalNumberPattern>
7189           3[2357]0[1-9]\d{3}|
7190           9[2-7]\d{5}
7191         </nationalNumberPattern>
7192         <exampleNumber>3501234</exampleNumber>
7193       </mobile>
7194       <emergency>
7195         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_971.html -->
7196         <nationalNumberPattern>
7197           911|
7198           320221
7199         </nationalNumberPattern>
7200         <possibleNumberPattern>\d{3}(?:\d{3})?</possibleNumberPattern>
7201         <exampleNumber>911</exampleNumber>
7202       </emergency>
7203     </territory>
7204
7205     <!-- Faroe Islands -->
7206     <!-- http://www.itu.int/oth/T0202000047/en -->
7207     <territory id="FO" countryCode="298" internationalPrefix="00"
7208                nationalPrefixForParsing="(10(?:01|[12]0|88))"
7209                carrierCodeFormattingRule="$CC $FG">
7210       <!-- All numbers are formatted together, as a block. -->
7211       <availableFormats>
7212         <numberFormat pattern="(\d{6})">
7213           <format>$1</format>
7214         </numberFormat>
7215       </availableFormats>
7216       <generalDesc>
7217         <nationalNumberPattern>[2-9]\d{5}</nationalNumberPattern>
7218         <possibleNumberPattern>\d{6}</possibleNumberPattern>
7219       </generalDesc>
7220       <fixedLine>
7221         <nationalNumberPattern>
7222           (?:
7223             20|
7224             [3-4]\d|
7225             8[19]
7226           )\d{4}
7227         </nationalNumberPattern>
7228         <exampleNumber>201234</exampleNumber>
7229       </fixedLine>
7230       <mobile>
7231         <nationalNumberPattern>
7232           (?:
7233             2[1-9]|
7234             5\d|
7235             7[1-79]
7236           )\d{4}
7237         </nationalNumberPattern>
7238         <exampleNumber>211234</exampleNumber>
7239       </mobile>
7240       <tollFree>
7241         <nationalNumberPattern>80[257-9]\d{3}</nationalNumberPattern>
7242         <exampleNumber>802123</exampleNumber>
7243       </tollFree>
7244       <premiumRate>
7245         <nationalNumberPattern>
7246           90(?:
7247             [1345][15-7]|
7248             2[125-7]|
7249             99
7250             )\d{2}
7251         </nationalNumberPattern>
7252         <exampleNumber>901123</exampleNumber>
7253       </premiumRate>
7254       <voip>
7255         <nationalNumberPattern>
7256           (?:
7257             6[0-36]|
7258             88
7259           )\d{4}
7260         </nationalNumberPattern>
7261         <exampleNumber>601234</exampleNumber>
7262       </voip>
7263       <emergency>
7264         <nationalNumberPattern>112</nationalNumberPattern>
7265         <possibleNumberPattern>\d{3}</possibleNumberPattern>
7266         <exampleNumber>112</exampleNumber>
7267       </emergency>
7268     </territory>
7269
7270     <!-- France -->
7271     <!-- http://www.itu.int/oth/T020200004A/en -->
7272     <!-- http://www.arcep.fr/index.php?id=8146 -->
7273     <!-- http://en.wikipedia.org/wiki/%2B33 -->
7274     <territory id="FR" countryCode="33" internationalPrefix="[04579]0"
7275                preferredInternationalPrefix="00"
7276                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
7277       <!-- 4-digit premium-rate numbers will be formatted as a block without a national prefix. -->
7278       <availableFormats>
7279         <numberFormat pattern="([1-79])(\d{2})(\d{2})(\d{2})(\d{2})">
7280           <leadingDigits>[1-79]</leadingDigits>
7281           <format>$1 $2 $3 $4 $5</format>
7282         </numberFormat>
7283         <numberFormat nationalPrefixFormattingRule="$NP $FG"
7284           pattern="(8\d{2})(\d{2})(\d{2})(\d{2})">
7285           <leadingDigits>8</leadingDigits>
7286           <format>$1 $2 $3 $4</format>
7287         </numberFormat>
7288       </availableFormats>
7289       <generalDesc>
7290         <nationalNumberPattern>
7291           [124-9]\d{8}|
7292           3\d{3}(?:\d{5})?
7293         </nationalNumberPattern>
7294         <possibleNumberPattern>\d{4}(?:\d{5})?</possibleNumberPattern>
7295       </generalDesc>
7296       <noInternationalDialling>
7297         <nationalNumberPattern>3\d{3}</nationalNumberPattern>
7298         <possibleNumberPattern>\d{4}</possibleNumberPattern>
7299         <exampleNumber>3123</exampleNumber>
7300       </noInternationalDialling>
7301       <fixedLine>
7302         <nationalNumberPattern>[1-5]\d{8}</nationalNumberPattern>
7303         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7304         <exampleNumber>123456789</exampleNumber>
7305       </fixedLine>
7306       <mobile>
7307         <nationalNumberPattern>
7308           6\d{8}|
7309           7[5-9]\d{7}
7310         </nationalNumberPattern>
7311         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7312         <exampleNumber>612345678</exampleNumber>
7313       </mobile>
7314       <tollFree>
7315         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
7316         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7317         <exampleNumber>801234567</exampleNumber>
7318       </tollFree>
7319       <premiumRate>
7320         <!-- We are putting 4-digit premium-rate numbers here for now, since they are used by
7321              agencies such as CPAM and the national unemployment agency. -->
7322         <nationalNumberPattern>
7323           3\d{3}|
7324           89[1-37-9]\d{6}
7325         </nationalNumberPattern>
7326         <possibleNumberPattern>\d{4}(?:\d{5})?</possibleNumberPattern>
7327         <exampleNumber>891123456</exampleNumber>
7328       </premiumRate>
7329       <sharedCost>
7330         <nationalNumberPattern>
7331           8(?:
7332             1[019]|
7333             2[0156]|
7334             84|
7335             90
7336           )\d{6}
7337         </nationalNumberPattern>
7338         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7339         <exampleNumber>810123456</exampleNumber>
7340       </sharedCost>
7341       <voip>
7342         <!-- 087 numbers used to be used for this. -->
7343         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
7344         <possibleNumberPattern>\d{9}</possibleNumberPattern>
7345         <exampleNumber>912345678</exampleNumber>
7346       </voip>
7347       <emergency>
7348         <nationalNumberPattern>
7349           1(?:
7350             [578]|
7351             12
7352           )
7353         </nationalNumberPattern>
7354         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
7355         <exampleNumber>112</exampleNumber>
7356       </emergency>
7357     </territory>
7358
7359     <!-- Gabon -->
7360     <!-- http://www.itu.int/oth/T020200004E/en -->
7361     <!-- www.arcep.ga -->
7362     <territory id="GA" countryCode="241" internationalPrefix="00" leadingZeroPossible="true">
7363       <availableFormats>
7364         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
7365           <format>$1 $2 $3 $4</format>
7366         </numberFormat>
7367       </availableFormats>
7368       <generalDesc>
7369         <nationalNumberPattern>0\d{7}</nationalNumberPattern>
7370         <possibleNumberPattern>\d{8}</possibleNumberPattern>
7371       </generalDesc>
7372       <!-- A 7-digit fixed-line plan was scheduled to be implemented on June 17, 2012 to unify fixed
7373            line and mobile numbering. However, it seems that this has not happened; their own
7374            website now lists numbers as "+241 01 44 68 11" and upon ringing numbers they will not
7375            connect without the 0 from outside the country. This was last tested June 2013. -->
7376       <fixedLine>
7377         <nationalNumberPattern>01\d{6}</nationalNumberPattern>
7378         <exampleNumber>01441234</exampleNumber>
7379       </fixedLine>
7380       <mobile>
7381         <nationalNumberPattern>0[2-7]\d{6}</nationalNumberPattern>
7382         <exampleNumber>06031234</exampleNumber>
7383       </mobile>
7384       <emergency>
7385         <nationalNumberPattern>
7386           1730|
7387           18|
7388           13\d{2}
7389         </nationalNumberPattern>
7390         <possibleNumberPattern>\d{2,4}</possibleNumberPattern>
7391         <exampleNumber>1730</exampleNumber>
7392       </emergency>
7393     </territory>
7394
7395     <!-- United Kingdom -->
7396     <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/ -->
7397     <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
7398     <!-- http://www.numberingplans.com/?page=dialling&sub=areacodes&ac=GB -->
7399     <!-- Note that this excludes Isle of Man, Jersey and Guernsey prefixes for the purposes of
7400          validation, although the formatting rules are shared. -->
7401     <territory id="GB" countryCode="44" internationalPrefix="00"
7402                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG"
7403                mainCountryForCode="true">
7404       <availableFormats>
7405         <!-- 2d, 55, 56, 70 and 76 pager numbers (excludes 7624) with 10 digits. -->
7406         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
7407           <leadingDigits>
7408             2|
7409             5[56]|
7410             7(?:
7411               0|
7412               6[013-9]
7413             )
7414           </leadingDigits>
7415           <leadingDigits>
7416             2|
7417             5[56]|
7418             7(?:
7419               0|
7420               6(?:
7421                 [013-9]|
7422                 2[0-35-9]
7423               )
7424             )
7425           </leadingDigits>
7426           <format>$1 $2 $3</format>
7427         </numberFormat>
7428         <!-- 11d, 1d1, 3dd, 9dd with 10 digits. -->
7429         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
7430           <leadingDigits>
7431             1(?:
7432               1|
7433               \d1
7434             )|
7435             3|
7436             9[018]
7437           </leadingDigits>
7438           <format>$1 $2 $3</format>
7439         </numberFormat>
7440         <!-- 1dddd with 9 or 10 digits.
7441              These area codes are very rare in GB, and are only available in the following places:
7442              13873(Langholm), 15242(Hornby), 15394(Hawkshead), 15395(Grange-over-Sands),
7443              15396(Sedbergh), 16973(Wigton), 16974(Raughton Head), 16977(Brampton),
7444              17683(Appleby), 17684(Pooley Bridge), 17687(Keswick), 19467(Gosforth). -->
7445         <numberFormat pattern="(\d{5})(\d{4,5})">
7446           <leadingDigits>
7447             1(?:
7448               38|
7449               5[23]|
7450               69|
7451               76|
7452               94
7453             )
7454           </leadingDigits>
7455           <leadingDigits>
7456             1(?:
7457               387|
7458               5(?:
7459                 24|
7460                 39
7461               )|
7462               697|
7463               768|
7464               946
7465             )
7466           </leadingDigits>
7467           <leadingDigits>
7468             1(?:
7469               3873|
7470               5(?:
7471                 242|
7472                 39[456]
7473               )|
7474               697[347]|
7475               768[347]|
7476               9467
7477             )
7478           </leadingDigits>
7479           <format>$1 $2</format>
7480         </numberFormat>
7481         <!-- 1ddd with 9 or 10 digits. -->
7482         <numberFormat pattern="(1\d{3})(\d{5,6})">
7483           <leadingDigits>1</leadingDigits>
7484           <format>$1 $2</format>
7485         </numberFormat>
7486         <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. -->
7487         <numberFormat pattern="(7\d{3})(\d{6})">
7488           <leadingDigits>
7489             7(?:
7490               [1-5789]|
7491               62
7492             )
7493           </leadingDigits>
7494           <leadingDigits>
7495             7(?:
7496               [1-5789]|
7497               624
7498             )
7499           </leadingDigits>
7500           <format>$1 $2</format>
7501         </numberFormat>
7502         <!-- 800 1111 : UK ChildLine. -->
7503         <numberFormat pattern="(800)(\d{4})">
7504           <leadingDigits>800</leadingDigits>
7505           <leadingDigits>8001</leadingDigits>
7506           <leadingDigits>80011</leadingDigits>
7507           <leadingDigits>800111</leadingDigits>
7508           <leadingDigits>8001111</leadingDigits>
7509           <format>$1 $2</format>
7510         </numberFormat>
7511         <!-- 845 46 47 : UK NHS Direct. -->
7512         <numberFormat pattern="(845)(46)(4\d)">
7513           <leadingDigits>845</leadingDigits>
7514           <leadingDigits>8454</leadingDigits>
7515           <leadingDigits>84546</leadingDigits>
7516           <leadingDigits>845464</leadingDigits>
7517           <format>$1 $2 $3</format>
7518         </numberFormat>
7519         <!-- 84d, 87d with 10 digits. -->
7520         <numberFormat pattern="(8\d{2})(\d{3})(\d{4})">
7521           <leadingDigits>
7522             8(?:
7523               4[2-5]|
7524               7[0-3]
7525             )
7526           </leadingDigits>
7527           <format>$1 $2 $3</format>
7528         </numberFormat>
7529         <!-- 80d (including 800) with 10 digits. -->
7530         <numberFormat pattern="(80\d)(\d{3})(\d{4})">
7531           <leadingDigits>80</leadingDigits>
7532           <format>$1 $2 $3</format>
7533         </numberFormat>
7534         <!-- 500, 800 with 9 digits. -->
7535         <numberFormat pattern="([58]00)(\d{6})">
7536           <leadingDigits>[58]00</leadingDigits>
7537           <format>$1 $2</format>
7538         </numberFormat>
7539       </availableFormats>
7540       <generalDesc>
7541         <nationalNumberPattern>\d{7,10}</nationalNumberPattern>
7542         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
7543       </generalDesc>
7544       <areaCodeOptional>
7545         <!-- These are a subset of the fixed-line rules, with digits 2-9 as the leading digit of the
7546              subscriber number. There are patterns for 2+8, 3+7 and a combined pattern for all
7547              4+6/4+5 and 5+5/5+4 numbers. Note that numbers matching this pattern are not
7548              necessarily valid numbers. -->
7549         <nationalNumberPattern>
7550           2\d[2-9]\d{7}|
7551           1(?:
7552             1\d|
7553             \d1
7554           )[2-9]\d{6}|
7555           1(?:
7556             [248][02-9]\d[2-9]\d{4,5}|
7557             (?:
7558               3(?:
7559                 [02-79]\d|
7560                 8[0-69]
7561               )|
7562               5(?:
7563                 [04-9]\d|
7564                 2[0-35-9]|
7565                 3[0-8]
7566               )|
7567               6(?:
7568                 [02-8]\d|
7569                 9[0-689]
7570               )|
7571               7(?:
7572                 [02-5789]\d|
7573                 6[0-79]
7574               )|
7575               9(?:
7576                 [0235-9]\d|
7577                 4[0-5789]
7578               )
7579             )[2-9]\d{4,5}|
7580             (?:
7581               387(?:
7582                 3[2-9]|
7583                 [24-9]\d
7584               )|
7585               5(?:
7586                 24(?:
7587                   2[2-9]|
7588                   [3-9]\d
7589                 )|
7590                 39(?:
7591                   [4-6][2-9]|
7592                   [237-9]\d
7593                 )
7594               )|
7595               697(?:
7596                 [347][2-9]|
7597                 [25689]\d
7598               )|
7599               768(?:
7600                 [347][2-9]|
7601                 [25679]\d
7602               )|
7603               946(?:
7604                 7[2-9]|
7605                 [2-689]\d
7606               )
7607             )\d{3,4}
7608           )
7609         </nationalNumberPattern>
7610         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
7611         <exampleNumber>1332456789</exampleNumber>
7612       </areaCodeOptional>
7613       <fixedLine>
7614         <!-- http://en.wikipedia.org/wiki/List_of_United_Kingdom_dialling_codes -->
7615         <!-- Pattern matches geographic NSN=10 numbers as follows:
7616              - area code and local number first digit for 2+8,
7617              - area code and local number first digit for 3+7,
7618              - area code only for 4+6 (including areas with embedded 5+5).
7619              Pattern matches geographic NSN=9 numbers as follows:
7620              - area code and local number first two digits for 4+5,
7621              - area code and local number first three digits for 4+5 special case (01768) 88Ddd,
7622              - area code and local number first digit for 5+4 special case (016977) Dddd.
7623              All patterns exclude ranges used in GG, IM, JE. -->
7624         <nationalNumberPattern>
7625           2(?:
7626             0[01378]|
7627             3[0189]|
7628             4[017]|
7629             8[0-46-9]|
7630             9[012]
7631           )\d{7}|
7632           1(?:
7633             (?:
7634               1(?:
7635                 3[0-48]|
7636                 [46][0-4]|
7637                 5[012789]|
7638                 7[0-49]|
7639                 8[01349]
7640               )|
7641               21[0-7]|
7642               31[0-8]|
7643               [459]1\d|
7644               61[0-46-9]
7645             )
7646           )\d{6}|
7647           1(?:
7648             2(?:
7649               0[024-9]|
7650               2[3-9]|
7651               3[3-79]|
7652               4[1-689]|
7653               [58][02-9]|
7654               6[0-4789]|
7655               7[013-9]|
7656               9\d
7657             )|
7658             3(?:
7659               0\d|
7660               [25][02-9]|
7661               3[02-579]|
7662               [468][0-46-9]|
7663               7[1235679]|
7664               9[24578]
7665             )|
7666             4(?:
7667               0[03-9]|
7668               [28][02-5789]|
7669               [37]\d|
7670               4[02-69]|
7671               5[0-8]|
7672               [69][0-79]
7673             )|
7674             5(?:
7675               0[1235-9]|
7676               2[024-9]|
7677               3[015689]|
7678               4[02-9]|
7679               5[03-9]|
7680               6\d|
7681               7[0-35-9]|
7682               8[0-468]|
7683               9[0-5789]
7684             )|
7685             6(?:
7686               0[034689]|
7687               2[0-35689]|
7688               [38][013-9]|
7689               4[1-467]|
7690               5[0-69]|
7691               6[13-9]|
7692               7[0-8]|
7693               9[0124578]
7694             )|
7695             7(?:
7696               0[0246-9]|
7697               2\d|
7698               3[023678]|
7699               4[03-9]|
7700               5[0-46-9]|
7701               6[013-9]|
7702               7[0-35-9]|
7703               8[024-9]|
7704               9[02-9]
7705             )|
7706             8(?:
7707               0[35-9]|
7708               2[1-5789]|
7709               3[02-578]|
7710               4[0-578]|
7711               5[124-9]|
7712               6[2-69]|
7713               7\d|
7714               8[02-9]|
7715               9[02569]
7716             )|
7717             9(?:
7718               0[02-589]|
7719               2[02-689]|
7720               3[1-5789]|
7721               4[2-9]|
7722               5[0-579]|
7723               6[234789]|
7724               7[0124578]|
7725               8\d|
7726               9[2-57]
7727             )
7728           )\d{6}|
7729           1(?:
7730             2(?:
7731               0(?:
7732                 46[1-4]|
7733                 87[2-9]
7734               )|
7735               545[1-79]|
7736               76(?:
7737                 2\d|
7738                 3[1-8]|
7739                 6[1-6]
7740               )|
7741               9(?:
7742                 7(?:
7743                   2[0-4]|
7744                   3[2-5]
7745                 )|
7746                 8(?:
7747                   2[2-8]|
7748                   7[0-4789]|
7749                   8[345]
7750                 )
7751               )
7752             )|
7753             3(?:
7754               638[2-5]|
7755               647[23]|
7756               8(?:
7757                 47[04-9]|
7758                 64[015789]
7759               )
7760             )|
7761             4(?:
7762               044[1-7]|
7763               20(?:
7764                 2[23]|
7765                 8\d
7766               )|
7767               6(?:
7768                 0(?:
7769                   30|
7770                   5[2-57]|
7771                   6[1-8]|
7772                   7[2-8]
7773                 )|
7774                 140
7775               )|
7776               8(?:
7777                 052|
7778                 87[123]
7779               )
7780             )|
7781             5(?:
7782               24(?:
7783                 3[2-79]|
7784                 6\d
7785               )|
7786               276\d|
7787               6(?:
7788                 26[06-9]|
7789                 686
7790               )
7791             )|
7792             6(?:
7793               06(?:
7794                 4\d|
7795                 7[4-79]
7796               )|
7797               295[567]|
7798               35[34]\d|
7799               47(?:
7800                 24|
7801                 61
7802               )|
7803               59(?:
7804                 5[08]|
7805                 6[67]|
7806                 74
7807               )|
7808               955[0-4]
7809             )|
7810             7(?:
7811               26(?:
7812                 6[13-9]|
7813                 7[0-7]
7814               )|
7815               442\d|
7816               50(?:
7817                 2[0-3]|
7818                 [3-68]2|
7819                 76
7820               )
7821             )|
7822             8(?:
7823               27[56]\d|
7824               37(?:
7825                 5[2-5]|
7826                 8[239]
7827               )|
7828               84(?:
7829                 3[2-58]
7830               )
7831             )|
7832             9(?:
7833               0(?:
7834                 0(?:
7835                   6[1-8]|
7836                   85
7837                 )|
7838                 52\d
7839               )|
7840               3583|
7841               4(?:
7842                 66[1-8]|
7843                 9(?:
7844                   2[01]|
7845                   81
7846                 )
7847               )|
7848               63(?:
7849                 23|
7850                 3[1-4]
7851               )|
7852               9561
7853             )
7854           )\d{3}|
7855           176888[234678]\d{2}|
7856           16977[23]\d{3}
7857         </nationalNumberPattern>
7858         <exampleNumber>1212345678</exampleNumber>
7859       </fixedLine>
7860       <mobile>
7861         <!-- http://stakeholders.ofcom.org.uk/telecoms/numbering/telephone-no-availability/numbers-administered/
7862              7100-7599, 7700-7999 with 10 digits; excluding ranges used in GG, IM, JE. -->
7863         <nationalNumberPattern>
7864           7(?:
7865             [1-4]\d\d|
7866             5(?:
7867               0[0-8]|
7868               [13-9]\d|
7869               2[0-35-9]
7870             )|
7871             7(?:
7872               0[1-9]|
7873               [1-7]\d|
7874               8[02-9]|
7875               9[0-689]
7876             )|
7877             8(?:
7878               [014-9]\d|
7879               [23][0-8]
7880             )|
7881             9(?:
7882               [04-9]\d|
7883               1[02-9]|
7884               2[0-35-9]|
7885               3[0-689]
7886             )
7887           )\d{6}
7888         </nationalNumberPattern>
7889         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7890         <exampleNumber>7400123456</exampleNumber>
7891       </mobile>
7892       <pager>
7893         <!-- 76 with 10 digits; excluding ranges used in IM. -->
7894         <nationalNumberPattern>
7895           76(?:
7896             0[012]|
7897             2[356]|
7898             4[0134]|
7899             5[49]|
7900             6[0-369]|
7901             77|
7902             81|
7903             9[39]
7904           )\d{6}
7905         </nationalNumberPattern>
7906         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7907         <exampleNumber>7640123456</exampleNumber>
7908       </pager>
7909       <!-- Source for non geographic numbers:
7910            http://en.wikipedia.org/wiki/Non-geographic_telephone_numbers_in_the_United_Kingdom -->
7911       <tollFree>
7912         <!-- 800 1111 with 7 digits, 800 with 9 or 10 digits, 808 with 10 digits, 500 with 9 digits.
7913              -->
7914         <nationalNumberPattern>
7915           80(?:
7916             0(?:
7917               1111|
7918               \d{6,7}
7919             )|
7920             8\d{7}
7921           )|
7922           500\d{6}
7923         </nationalNumberPattern>
7924         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
7925         <exampleNumber>8001234567</exampleNumber>
7926       </tollFree>
7927       <premiumRate>
7928         <!-- 871, 872, 873 with 10 digits are now Controlled Premium Rate Services, so are listed
7929              here as well as 900-909, 910-919, 982-984, 989 with 10 digits.
7930              Note that only 908, 909, 980-989 are reserved for "adult services" while 900-907 and
7931              910-919 are reserved for standard premium rate services. -->
7932         <nationalNumberPattern>
7933           (?:
7934             87[123]|
7935             9(?:
7936               [01]\d|
7937               8[2349]
7938             )
7939           )\d{7}
7940         </nationalNumberPattern>
7941         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7942         <exampleNumber>9012345678</exampleNumber>
7943       </premiumRate>
7944       <sharedCost>
7945         <!-- Using shared cost to deal with the various revenue sharing number prefixes in the
7946              United Kingdom: 845 46 47 with 7 digits, 842-845, 870 with 10 digits. -->
7947         <nationalNumberPattern>
7948           8(?:
7949             4(?:
7950               5464\d|
7951               [2-5]\d{7}
7952             )|
7953             70\d{7}
7954           )
7955         </nationalNumberPattern>
7956         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
7957         <exampleNumber>8431234567</exampleNumber>
7958       </sharedCost>
7959       <personalNumber>
7960         <!-- 70 with 10 digits. -->
7961         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
7962         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7963         <exampleNumber>7012345678</exampleNumber>
7964       </personalNumber>
7965       <voip>
7966         <!-- 56 with 10 digits. -->
7967         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
7968         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7969         <exampleNumber>5612345678</exampleNumber>
7970       </voip>
7971       <uan>
7972         <!-- 30d, 33d, 34d, 37d, 55 with 10 digits. -->
7973         <nationalNumberPattern>
7974           (?:
7975             3[0347]|
7976             55
7977           )\d{8}
7978         </nationalNumberPattern>
7979         <possibleNumberPattern>\d{10}</possibleNumberPattern>
7980         <exampleNumber>5512345678</exampleNumber>
7981       </uan>
7982       <emergency>
7983         <nationalNumberPattern>
7984           112|
7985           999
7986         </nationalNumberPattern>
7987         <possibleNumberPattern>\d{3}</possibleNumberPattern>
7988         <exampleNumber>112</exampleNumber>
7989       </emergency>
7990     </territory>
7991
7992     <!-- Grenada -->
7993     <!-- http://www.itu.int/oth/T0202000057/en -->
7994     <territory id="GD" countryCode="1" leadingDigits="473" nationalPrefix="1"
7995                internationalPrefix="011">
7996       <generalDesc>
7997         <!-- NANPA country - uses US formatting rules -->
7998         <nationalNumberPattern>[4589]\d{9}</nationalNumberPattern>
7999         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8000       </generalDesc>
8001       <fixedLine>
8002         <nationalNumberPattern>
8003           473(?:
8004             2(?:
8005               3[0-2]|
8006               69
8007             )|
8008             3(?:
8009               2[89]|
8010               86
8011             )|
8012             4(?:
8013               [06]8|
8014               3[5-9]|
8015               4[0-49]|
8016               5[5-79]|
8017               68|
8018               73|
8019               90
8020             )|
8021             63[68]|
8022             7(?:
8023               58|
8024               84
8025             )|
8026             938
8027           )\d{4}
8028         </nationalNumberPattern>
8029         <exampleNumber>4732691234</exampleNumber>
8030       </fixedLine>
8031       <mobile>
8032         <nationalNumberPattern>
8033           473(?:
8034             4(?:
8035               0[3-79]|
8036               1[04-9]|
8037               20|
8038               58
8039             )|
8040             53[3-8]
8041           )\d{4}
8042         </nationalNumberPattern>
8043         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8044         <exampleNumber>4734031234</exampleNumber>
8045       </mobile>
8046       <tollFree>
8047         <nationalNumberPattern>
8048           8(?:
8049             00|
8050             55|
8051             66|
8052             77|
8053             88
8054           )[2-9]\d{6}
8055         </nationalNumberPattern>
8056         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8057         <exampleNumber>8002123456</exampleNumber>
8058       </tollFree>
8059       <premiumRate>
8060         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
8061         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8062         <exampleNumber>9002123456</exampleNumber>
8063       </premiumRate>
8064       <personalNumber>
8065         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
8066         <nationalNumberPattern>
8067           5(?:
8068             00|
8069             33|
8070             44
8071           )[2-9]\d{6}
8072         </nationalNumberPattern>
8073         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8074         <exampleNumber>5002345678</exampleNumber>
8075       </personalNumber>
8076       <emergency>
8077         <!-- http://barbados.usembassy.gov/emergency-grenada.html -->
8078         <nationalNumberPattern>911</nationalNumberPattern>
8079         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8080         <exampleNumber>911</exampleNumber>
8081       </emergency>
8082     </territory>
8083
8084     <!-- Georgia -->
8085     <!-- http://www.itu.int/oth/T0202000050/en -->
8086     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia. -->
8087     <territory id="GE" countryCode="995" internationalPrefix="00" nationalPrefix="0">
8088       <availableFormats>
8089         <!-- Format isn't very strictly defined - the yellow pages omits area code and does 2 2 2,
8090              the communications commission uses 2 3 3. Wikipedia says 3 2 3. Some use 2 6. -->
8091         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
8092           <leadingDigits>[348]</leadingDigits>
8093           <format>$1 $2 $3 $4</format>
8094         </numberFormat>
8095         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
8096           <leadingDigits>7</leadingDigits>
8097           <format>$1 $2 $3</format>
8098         </numberFormat>
8099         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
8100           <leadingDigits>5</leadingDigits>
8101           <format>$1 $2 $3 $4</format>
8102         </numberFormat>
8103       </availableFormats>
8104       <noInternationalDialling>
8105         <!-- Online numbers mention that this is not internationally diallable. -->
8106         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8107         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8108         <exampleNumber>706123456</exampleNumber>
8109       </noInternationalDialling>
8110       <generalDesc>
8111         <nationalNumberPattern>[34578]\d{8}</nationalNumberPattern>
8112         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
8113       </generalDesc>
8114       <fixedLine>
8115         <nationalNumberPattern>
8116           (?:
8117             3(?:
8118               [256]\d|
8119               4[124-9]|
8120               7[0-4]
8121             )|
8122             4(?:
8123               1\d|
8124               2[2-7]|
8125               3[1-79]|
8126               4[2-8]|
8127               7[239]|
8128               9[1-7]
8129             )
8130           )\d{6}
8131         </nationalNumberPattern>
8132         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
8133         <exampleNumber>322123456</exampleNumber>
8134       </fixedLine>
8135       <mobile>
8136         <!-- The ITU document says 790 instead of 590, but this contradicts their press release
8137              about the change in numbers, and online numbers found. -->
8138         <nationalNumberPattern>
8139           5(?:
8140             14|
8141             5[01578]|
8142             68|
8143             7[0147-9]|
8144             9[0-35-9]
8145           )\d{6}
8146         </nationalNumberPattern>
8147         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8148         <exampleNumber>555123456</exampleNumber>
8149       </mobile>
8150       <!-- Information from www.yell.ge, examples such as Wissol Petroleum Georgia hotline. -->
8151       <tollFree>
8152         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
8153         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8154         <exampleNumber>800123456</exampleNumber>
8155       </tollFree>
8156       <voip>
8157         <!-- http://www.mydivert.com/virtual-numbers/995-virtual-number-National.html -->
8158         <nationalNumberPattern>706\d{6}</nationalNumberPattern>
8159         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8160         <exampleNumber>706123456</exampleNumber>
8161       </voip>
8162       <!-- It seems there may be special 6 digit numbers beginning with 91, but we are not sure, so
8163            these are omitted for now. -->
8164       <emergency>
8165         <!-- According to Wikipedia, 011, 022 and 033 will be replaced by 111, 122, 113 and 114 in
8166              2011. We are not sure if that has happened, so we support both versions for now. -->
8167         <nationalNumberPattern>
8168           0(?:
8169             11|
8170             22|
8171             33
8172           )|
8173           1(?:
8174             1[123]|
8175             22
8176           )
8177         </nationalNumberPattern>
8178         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8179         <exampleNumber>112</exampleNumber>
8180       </emergency>
8181     </territory>
8182
8183     <!-- French Guiana (French Dept. of) -->
8184     <!-- http://www.itu.int/oth/T020200004C/en -->
8185     <!-- http://www.arcep.fr/index.php?id=2137&bloc=0594&CMD=RESULTS_NUMEROTATION -->
8186     <!-- http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf -->
8187     <!-- Using a national prefix here as online numbers are formatted with it.  -->
8188     <territory id="GF" countryCode="594" internationalPrefix="00"
8189                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
8190       <availableFormats>
8191         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8192           <format>$1 $2 $3 $4</format>
8193         </numberFormat>
8194       </availableFormats>
8195       <generalDesc>
8196         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8197         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8198       </generalDesc>
8199       <fixedLine>
8200         <nationalNumberPattern>
8201           594(?:
8202             10|
8203             2[012457-9]|
8204             3[0-57-9]|
8205             4[3-9]|
8206             5[7-9]|
8207             6[0-3]|
8208             9[014]
8209           )\d{4}
8210         </nationalNumberPattern>
8211         <exampleNumber>594101234</exampleNumber>
8212       </fixedLine>
8213       <mobile>
8214         <nationalNumberPattern>
8215           694(?:
8216             [04][0-7]|
8217             1[0-5]|
8218             3[018]|
8219             [29]\d
8220           )\d{4}
8221         </nationalNumberPattern>
8222         <exampleNumber>694201234</exampleNumber>
8223       </mobile>
8224       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
8225            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
8226            too. -->
8227       <emergency>
8228         <nationalNumberPattern>1[578]</nationalNumberPattern>
8229         <possibleNumberPattern>\d{2}</possibleNumberPattern>
8230         <exampleNumber>15</exampleNumber>
8231       </emergency>
8232     </territory>
8233
8234     <!-- Guernsey -->
8235     <!-- Inherits formatting rules from the UK. -->
8236     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
8237     <territory id="GG" countryCode="44" internationalPrefix="00"
8238                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
8239       <generalDesc>
8240         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
8241         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
8242       </generalDesc>
8243       <areaCodeOptional>
8244         <nationalNumberPattern>1481[2-9]\d{5}</nationalNumberPattern>
8245         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8246         <exampleNumber>1481250123</exampleNumber>
8247       </areaCodeOptional>
8248       <!-- Specific to GG. -->
8249       <fixedLine>
8250         <!-- 1481 with 10 digits. -->
8251         <nationalNumberPattern>1481\d{6}</nationalNumberPattern>
8252         <exampleNumber>1481456789</exampleNumber>
8253       </fixedLine>
8254       <mobile>
8255         <!-- 7781, 7839, 7911 with 10 digits. -->
8256         <nationalNumberPattern>
8257           7(?:
8258             781|
8259             839|
8260             911
8261           )\d{6}
8262         </nationalNumberPattern>
8263         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8264         <exampleNumber>7781123456</exampleNumber>
8265       </mobile>
8266       <!-- Other numbers as per GB. -->
8267       <pager>
8268         <nationalNumberPattern>
8269           76(?:
8270             0[012]|
8271             2[356]|
8272             4[0134]|
8273             5[49]|
8274             6[0-369]|
8275             77|
8276             81|
8277             9[39]
8278           )\d{6}
8279         </nationalNumberPattern>
8280         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8281         <exampleNumber>7640123456</exampleNumber>
8282       </pager>
8283       <tollFree>
8284         <nationalNumberPattern>
8285           80(?:
8286             0(?:
8287               1111|
8288               \d{6,7}
8289             )|
8290             8\d{7}
8291           )|
8292           500\d{6}
8293         </nationalNumberPattern>
8294         <possibleNumberPattern>\d{7}(?:\d{2,3})?</possibleNumberPattern>
8295         <exampleNumber>8001234567</exampleNumber>
8296       </tollFree>
8297       <premiumRate>
8298         <nationalNumberPattern>
8299           (?:
8300             87[123]|
8301             9(?:
8302               [01]\d|
8303               8[0-3]
8304             )
8305           )\d{7}
8306         </nationalNumberPattern>
8307         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8308         <exampleNumber>9012345678</exampleNumber>
8309       </premiumRate>
8310       <sharedCost>
8311         <nationalNumberPattern>
8312           8(?:
8313             4(?:
8314               5464\d|
8315               [2-5]\d{7}
8316             )|
8317             70\d{7}
8318           )
8319         </nationalNumberPattern>
8320         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8321         <exampleNumber>8431234567</exampleNumber>
8322       </sharedCost>
8323       <personalNumber>
8324         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8325         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8326         <exampleNumber>7012345678</exampleNumber>
8327       </personalNumber>
8328       <voip>
8329         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
8330         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8331         <exampleNumber>5612345678</exampleNumber>
8332       </voip>
8333       <uan>
8334         <nationalNumberPattern>
8335           (?:
8336             3[0347]|
8337             55
8338           )\d{8}
8339         </nationalNumberPattern>
8340         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8341         <exampleNumber>5512345678</exampleNumber>
8342       </uan>
8343       <emergency>
8344         <!-- http://en.wikipedia.org/wiki/Guernsey#Emergency_services -->
8345         <nationalNumberPattern>
8346           112|
8347           999
8348         </nationalNumberPattern>
8349         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8350         <exampleNumber>999</exampleNumber>
8351       </emergency>
8352     </territory>
8353
8354     <!-- Ghana -->
8355     <!-- http://www.itu.int/oth/T0202000052/en -->
8356     <!-- http://www.nca.org.gh/index.php?option=com_content&view=article&id=90&Itemid=65 -->
8357     <territory id="GH" countryCode="233" internationalPrefix="00"
8358                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
8359       <availableFormats>
8360         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
8361           <leadingDigits>[235]</leadingDigits>
8362           <format>$1 $2 $3</format>
8363         </numberFormat>
8364         <numberFormat pattern="(\d{3})(\d{5})">
8365           <leadingDigits>8</leadingDigits>
8366           <format>$1 $2</format>
8367         </numberFormat>
8368       </availableFormats>
8369       <generalDesc>
8370         <nationalNumberPattern>
8371           [235]\d{8}|
8372           8\d{7}
8373         </nationalNumberPattern>
8374         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8375       </generalDesc>
8376       <noInternationalDialling>
8377         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8378         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8379         <exampleNumber>80012345</exampleNumber>
8380       </noInternationalDialling>
8381       <fixedLine>
8382         <nationalNumberPattern>
8383           3(?:
8384             0[237]\d|
8385             [167](?:
8386               2[0-6]|
8387               7\d
8388             )|
8389             2(?:
8390               2[0-5]|
8391               7\d
8392             )|
8393             3(?:
8394               2[0-3]|
8395               7\d
8396             )|
8397             4(?:
8398               2[013-9]|
8399               3[01]|
8400               7\d
8401             )|
8402             5(?:
8403               2[0-7]|
8404               7\d
8405             )|
8406             8(?:
8407               2[0-2]|
8408               7\d
8409             )|
8410             9(?:
8411               20|
8412               7\d
8413             )
8414           )\d{5}
8415         </nationalNumberPattern>
8416         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
8417         <exampleNumber>302345678</exampleNumber>
8418       </fixedLine>
8419       <mobile>
8420         <nationalNumberPattern>
8421           (?:
8422             2[034678]|
8423             5[047]
8424           )\d{7}
8425         </nationalNumberPattern>
8426         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8427         <exampleNumber>231234567</exampleNumber>
8428       </mobile>
8429       <tollFree>
8430         <!-- Found online references to these numbers, although they are not in the plan since they
8431              are not internationally diallable. -->
8432         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
8433         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8434         <exampleNumber>80012345</exampleNumber>
8435       </tollFree>
8436       <!-- No premiumRate information can be found. -->
8437       <emergency>
8438         <nationalNumberPattern>
8439           19[123]|
8440           999
8441         </nationalNumberPattern>
8442         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8443         <exampleNumber>999</exampleNumber>
8444       </emergency>
8445     </territory>
8446
8447     <!-- Gibraltar -->
8448     <territory id="GI" countryCode="350" internationalPrefix="00">
8449       <!-- No formatting rules - numbers are always formatted as a block. -->
8450       <generalDesc>
8451         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
8452         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8453       </generalDesc>
8454       <fixedLine>
8455         <nationalNumberPattern>
8456           2(?:
8457             00\d|
8458             16[0-7]|
8459             22[2457]
8460           )\d{4}
8461         </nationalNumberPattern>
8462         <exampleNumber>20012345</exampleNumber>
8463       </fixedLine>
8464       <mobile>
8465         <nationalNumberPattern>
8466           (?:
8467             5[4-8]|
8468             60
8469           )\d{6}
8470         </nationalNumberPattern>
8471         <exampleNumber>57123456</exampleNumber>
8472       </mobile>
8473       <tollFree>
8474         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
8475         <exampleNumber>80123456</exampleNumber>
8476       </tollFree>
8477       <premiumRate>
8478         <nationalNumberPattern>8[1-689]\d{6}</nationalNumberPattern>
8479         <exampleNumber>88123456</exampleNumber>
8480       </premiumRate>
8481       <sharedCost>
8482         <nationalNumberPattern>87\d{6}</nationalNumberPattern>
8483         <exampleNumber>87123456</exampleNumber>
8484       </sharedCost>
8485       <emergency>
8486         <nationalNumberPattern>
8487           1(?:
8488             12|
8489             9[09]
8490           )
8491         </nationalNumberPattern>
8492         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8493         <exampleNumber>112</exampleNumber>
8494       </emergency>
8495     </territory>
8496
8497     <!-- Greenland -->
8498     <!-- http://www.itu.int/oth/T0202000056/en -->
8499     <territory id="GL" countryCode="299" internationalPrefix="00">
8500       <availableFormats>
8501         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
8502           <format>$1 $2 $3</format>
8503         </numberFormat>
8504       </availableFormats>
8505       <generalDesc>
8506         <nationalNumberPattern>[1-689]\d{5}</nationalNumberPattern>
8507         <possibleNumberPattern>\d{6}</possibleNumberPattern>
8508       </generalDesc>
8509       <fixedLine>
8510         <!-- Including VSAT numbers here. -->
8511         <nationalNumberPattern>
8512           (?:
8513             19|
8514             3[1-6]|
8515             6[14689]|
8516             8[14-79]|
8517             9\d
8518           )\d{4}
8519         </nationalNumberPattern>
8520         <exampleNumber>321000</exampleNumber>
8521       </fixedLine>
8522       <mobile>
8523         <nationalNumberPattern>[245][2-9]\d{4}</nationalNumberPattern>
8524         <exampleNumber>221234</exampleNumber>
8525       </mobile>
8526       <tollFree>
8527         <nationalNumberPattern>80\d{4}</nationalNumberPattern>
8528         <exampleNumber>801234</exampleNumber>
8529       </tollFree>
8530       <voip>
8531         <nationalNumberPattern>3[89]\d{4}</nationalNumberPattern>
8532         <exampleNumber>381234</exampleNumber>
8533       </voip>
8534       <emergency>
8535         <nationalNumberPattern>112</nationalNumberPattern>
8536         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8537         <exampleNumber>112</exampleNumber>
8538       </emergency>
8539     </territory>
8540
8541     <!-- Gambia -->
8542     <!-- http://www.itu.int/oth/T020200004F/en -->
8543     <territory id="GM" countryCode="220" internationalPrefix="00">
8544       <availableFormats>
8545         <numberFormat pattern="(\d{3})(\d{4})">
8546           <format>$1 $2</format>
8547         </numberFormat>
8548       </availableFormats>
8549       <generalDesc>
8550         <nationalNumberPattern>[2-9]\d{6}</nationalNumberPattern>
8551         <possibleNumberPattern>\d{7}</possibleNumberPattern>
8552       </generalDesc>
8553       <fixedLine>
8554         <nationalNumberPattern>
8555           (?:
8556             4(?:
8557               [23]\d{2}|
8558               4(?:
8559                 1[024679]|
8560                 [6-9]\d
8561               )
8562             )|
8563             5(?:
8564               54[0-7]|
8565               6(?:
8566                 [67]\d
8567               )|
8568               7(?:
8569                 1[04]|
8570                 2[035]|
8571                 3[58]|
8572                 48
8573               )
8574             )|
8575             8\d{3}
8576           )\d{3}
8577         </nationalNumberPattern>
8578         <exampleNumber>5661234</exampleNumber>
8579       </fixedLine>
8580       <mobile>
8581         <nationalNumberPattern>
8582           (?:
8583             2[0-2]|
8584             [3679]\d
8585           )\d{5}
8586         </nationalNumberPattern>
8587         <exampleNumber>3012345</exampleNumber>
8588       </mobile>
8589       <emergency>
8590         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1121.html -->
8591         <!-- http://www.netglobers.com/africa/gambia-emergency-numbers-in-the-gambia.html -->
8592         <nationalNumberPattern>1?1[678]</nationalNumberPattern>
8593         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
8594         <exampleNumber>117</exampleNumber>
8595       </emergency>
8596     </territory>
8597
8598     <!-- Guinea -->
8599     <!-- http://www.itu.int/oth/T020200005B/en -->
8600     <territory id="GN" countryCode="224" internationalPrefix="00">
8601       <availableFormats>
8602         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
8603           <leadingDigits>3</leadingDigits>
8604           <format>$1 $2 $3 $4</format>
8605         </numberFormat>
8606         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
8607           <leadingDigits>[67]</leadingDigits>
8608           <format>$1 $2 $3 $4</format>
8609         </numberFormat>
8610       </availableFormats>
8611       <generalDesc>
8612         <nationalNumberPattern>[367]\d{7,8}</nationalNumberPattern>
8613         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
8614       </generalDesc>
8615       <fixedLine>
8616         <nationalNumberPattern>
8617           30(?:
8618             24|
8619             3[12]|
8620             4[1-35-7]|
8621             5[13]|
8622             6[189]|
8623             [78]1|
8624             9[1478]
8625           )\d{4}
8626         </nationalNumberPattern>
8627         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8628         <exampleNumber>30241234</exampleNumber>
8629       </fixedLine>
8630       <mobile>
8631         <!-- Limited to the new 9-digit mobile ranges, which came into effect March 29th 2013. -->
8632         <nationalNumberPattern>
8633           6(?:
8634             [03]1|
8635             2[128]|
8636             5[57]|
8637             6[2469]
8638           )\d{6}
8639         </nationalNumberPattern>
8640         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8641         <exampleNumber>601123456</exampleNumber>
8642       </mobile>
8643       <voip>
8644         <!-- Gamma concept network is being listed as VoIP as per
8645              http://www.gammaconcept.com/internet%20sat.html -->
8646         <nationalNumberPattern>722\d{6}</nationalNumberPattern>
8647         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8648         <exampleNumber>722123456</exampleNumber>
8649       </voip>
8650       <!-- No national emergency numbers were located for Guinea. -->
8651     </territory>
8652
8653     <!-- Guadeloupe -->
8654     <!-- http://www.itu.int/oth/T0202000058/en -->
8655     <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls -->
8656     <territory id="GP" countryCode="590" internationalPrefix="00"
8657                mainCountryForCode="true" nationalPrefix="0"
8658                nationalPrefixFormattingRule="$NP$FG">
8659       <availableFormats>
8660         <numberFormat pattern="([56]90)(\d{2})(\d{4})">
8661           <format>$1 $2-$3</format>
8662         </numberFormat>
8663       </availableFormats>
8664       <generalDesc>
8665         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
8666         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8667       </generalDesc>
8668       <fixedLine>
8669         <nationalNumberPattern>
8670           590(?:
8671             0[13468]|
8672             1[012]|
8673             2[0-68]|
8674             3[28]|
8675             4[0-8]|
8676             5[579]|
8677             6[0189]|
8678             70|
8679             8[0-689]|
8680             9\d
8681           )\d{4}
8682         </nationalNumberPattern>
8683         <exampleNumber>590201234</exampleNumber>
8684       </fixedLine>
8685       <mobile>
8686         <!-- Any ranges assigned from
8687              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
8688              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
8689              them. -->
8690         <nationalNumberPattern>
8691           690(?:
8692             0[0-7]|
8693             [1-9]\d
8694           )\d{4}
8695         </nationalNumberPattern>
8696         <exampleNumber>690301234</exampleNumber>
8697       </mobile>
8698       <!-- http://www.guadeloupe.franceantilles.fr/pratique/urgences/numeros-urgence-guadeloupe-14950.php -->
8699       <emergency>
8700         <nationalNumberPattern>1[578]</nationalNumberPattern>
8701         <possibleNumberPattern>\d{2}</possibleNumberPattern>
8702         <exampleNumber>18</exampleNumber>
8703       </emergency>
8704     </territory>
8705
8706     <!-- Equatorial Guinea -->
8707     <!-- http://www.itu.int/oth/T0202000041/en -->
8708     <territory id="GQ" countryCode="240" internationalPrefix="00">
8709       <availableFormats>
8710         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
8711           <leadingDigits>[235]</leadingDigits>
8712           <format>$1 $2 $3</format>
8713         </numberFormat>
8714         <numberFormat pattern="(\d{3})(\d{6})">
8715           <leadingDigits>[89]</leadingDigits>
8716           <format>$1 $2</format>
8717         </numberFormat>
8718       </availableFormats>
8719       <generalDesc>
8720         <nationalNumberPattern>[23589]\d{8}</nationalNumberPattern>
8721         <possibleNumberPattern>\d{9}</possibleNumberPattern>
8722       </generalDesc>
8723       <fixedLine>
8724         <nationalNumberPattern>
8725           3(?:
8726             3(?:
8727               3\d[7-9]|
8728               [0-24-9]\d[46]
8729             )|
8730             5\d{2}[7-9]
8731           )\d{4}
8732         </nationalNumberPattern>
8733         <exampleNumber>333091234</exampleNumber>
8734       </fixedLine>
8735       <mobile>
8736         <nationalNumberPattern>
8737           (?:
8738             222|
8739             551
8740           )\d{6}
8741         </nationalNumberPattern>
8742         <exampleNumber>222123456</exampleNumber>
8743       </mobile>
8744       <!-- Note that personal and sharedCost numbers are said to go under here too - hopefully when
8745            they start allocating them there will be a differentiation of prefixes, but this is not
8746            clear now. -->
8747       <tollFree>
8748         <nationalNumberPattern>80\d[1-9]\d{5}</nationalNumberPattern>
8749         <exampleNumber>800123456</exampleNumber>
8750       </tollFree>
8751       <premiumRate>
8752         <nationalNumberPattern>90\d[1-9]\d{5}</nationalNumberPattern>
8753         <exampleNumber>900123456</exampleNumber>
8754       </premiumRate>
8755       <!-- No national emergency numbers were located for Equatorial Guinea. -->
8756     </territory>
8757
8758     <!-- Greece -->
8759     <!-- http://www.itu.int/oth/T0202000055/en -->
8760     <!-- http://en.wikipedia.org/wiki/%2B30 -->
8761     <territory id="GR" countryCode="30" internationalPrefix="00">
8762       <availableFormats>
8763         <numberFormat pattern="([27]\d)(\d{4})(\d{4})">
8764           <leadingDigits>
8765             21|
8766             7
8767           </leadingDigits>
8768           <format>$1 $2 $3</format>
8769         </numberFormat>
8770         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
8771           <leadingDigits>
8772             2[2-9]1|
8773             [689]
8774           </leadingDigits>
8775           <format>$1 $2 $3</format>
8776         </numberFormat>
8777         <numberFormat pattern="(2\d{3})(\d{6})">
8778           <leadingDigits>2[2-9][02-9]</leadingDigits>
8779           <format>$1 $2</format>
8780         </numberFormat>
8781       </availableFormats>
8782       <generalDesc>
8783         <nationalNumberPattern>[26-9]\d{9}</nationalNumberPattern>
8784         <possibleNumberPattern>\d{10}</possibleNumberPattern>
8785       </generalDesc>
8786       <fixedLine>
8787         <nationalNumberPattern>
8788           2(?:
8789             1\d{2}|
8790             2(?:
8791               3[1-8]|
8792               4[1-7]|
8793               5[1-4]|
8794               6[1-8]|
8795               7[1-5]|
8796               [289][1-9]
8797             )|
8798             3(?:
8799               1\d|
8800               2[1-57]|
8801               3[1-4]|
8802               [45][1-3]|
8803               7[1-7]|
8804               8[1-6]|
8805               9[1-79]
8806             )|
8807             4(?:
8808               1\d|
8809               2[1-8]|
8810               3[1-4]|
8811               4[13-5]|
8812               6[1-578]|
8813               9[1-5]
8814             )|
8815             5(?:
8816               1\d|
8817               [239][1-4]|
8818               4[124]|
8819               5[1-6]
8820             )|
8821             6(?:
8822               1\d|
8823               3[124]|
8824               4[1-7]|
8825               5[13-9]|
8826               [269][1-6]|
8827               7[14]|
8828               8[1-5]
8829             )|
8830             7(?:
8831               1\d|
8832               2[1-5]|
8833               3[1-6]|
8834               4[1-7]|
8835               5[1-57]|
8836               6[134]|
8837               9[15-7]
8838             )|
8839             8(?:
8840               1\d|
8841               2[1-5]|
8842               [34][1-4]|
8843               9[1-7]
8844             )
8845           )\d{6}
8846         </nationalNumberPattern>
8847         <exampleNumber>2123456789</exampleNumber>
8848       </fixedLine>
8849       <mobile>
8850         <nationalNumberPattern>69\d{8}</nationalNumberPattern>
8851         <exampleNumber>6912345678</exampleNumber>
8852       </mobile>
8853       <tollFree>
8854         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
8855         <exampleNumber>8001234567</exampleNumber>
8856       </tollFree>
8857       <premiumRate>
8858         <nationalNumberPattern>90[19]\d{7}</nationalNumberPattern>
8859         <exampleNumber>9091234567</exampleNumber>
8860       </premiumRate>
8861       <!-- Including calls with maximum charge of 0,25 EUR/minute here instead of under premium
8862            rate. -->
8863       <sharedCost>
8864         <nationalNumberPattern>
8865           8(?:
8866             0[16]|
8867             12|
8868             25
8869           )\d{7}
8870         </nationalNumberPattern>
8871         <exampleNumber>8011234567</exampleNumber>
8872       </sharedCost>
8873       <personalNumber>
8874         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
8875         <exampleNumber>7012345678</exampleNumber>
8876       </personalNumber>
8877       <emergency>
8878         <nationalNumberPattern>
8879           1(?:
8880             00|
8881             12|
8882             66|
8883             99
8884           )
8885         </nationalNumberPattern>
8886         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8887         <exampleNumber>112</exampleNumber>
8888       </emergency>
8889     </territory>
8890
8891     <!-- Guatemala -->
8892     <!-- http://www.itu.int/oth/T020200005A/en -->
8893     <!-- http://www.sit.gob.gt/index.php?page=plan-de-numeracion -->
8894     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Guatemala -->
8895     <territory id="GT" countryCode="502" internationalPrefix="00">
8896       <availableFormats>
8897         <numberFormat pattern="(\d{4})(\d{4})">
8898           <leadingDigits>[2-7]</leadingDigits>
8899           <format>$1 $2</format>
8900         </numberFormat>
8901         <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
8902           <leadingDigits>1</leadingDigits>
8903           <format>$1 $2 $3</format>
8904         </numberFormat>
8905       </availableFormats>
8906       <generalDesc>
8907         <nationalNumberPattern>
8908           [2-7]\d{7}|
8909           1[89]\d{9}
8910         </nationalNumberPattern>
8911         <possibleNumberPattern>\d{8}(?:\d{3})?</possibleNumberPattern>
8912       </generalDesc>
8913       <fixedLine>
8914         <nationalNumberPattern>[267][2-9]\d{6}</nationalNumberPattern>
8915         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8916         <exampleNumber>22456789</exampleNumber>
8917       </fixedLine>
8918       <mobile>
8919         <!-- Wikipedia claims numbers with 3 are also mobile although in ITU document it says that
8920              they are just reserved. -->
8921         <nationalNumberPattern>[345]\d{7}</nationalNumberPattern>
8922         <possibleNumberPattern>\d{8}</possibleNumberPattern>
8923         <exampleNumber>51234567</exampleNumber>
8924       </mobile>
8925       <tollFree>
8926         <nationalNumberPattern>18[01]\d{8}</nationalNumberPattern>
8927         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8928         <exampleNumber>18001112222</exampleNumber>
8929       </tollFree>
8930       <premiumRate>
8931         <nationalNumberPattern>19\d{9}</nationalNumberPattern>
8932         <possibleNumberPattern>\d{11}</possibleNumberPattern>
8933         <exampleNumber>19001112222</exampleNumber>
8934       </premiumRate>
8935       <emergency>
8936         <nationalNumberPattern>
8937           1(?:
8938             10|
8939             2[03]
8940           )
8941         </nationalNumberPattern>
8942         <possibleNumberPattern>\d{3}</possibleNumberPattern>
8943         <exampleNumber>110</exampleNumber>
8944       </emergency>
8945     </territory>
8946
8947     <!-- Guam -->
8948     <!-- http://www.nationalnanpa.com/nas/public/assigned_code_query_step1.do?method=resetCodeQueryModel -->
8949     <territory id="GU" countryCode="1" leadingDigits="671" nationalPrefix="1"
8950                internationalPrefix="011">
8951       <generalDesc>
8952         <!-- NANPA country - uses US formatting rules -->
8953         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
8954         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
8955       </generalDesc>
8956       <fixedLine>
8957         <!-- Added 671 489/555/720/721 based on information from
8958              http://www.area-codes.com/area-code/area-code-671.asp -->
8959         <nationalNumberPattern>
8960           671(?:
8961             3(?:
8962               00|
8963               3[39]|
8964               4[349]|
8965               55|
8966               6[26]
8967             )|
8968             4(?:
8969               56|
8970               7[1-9]|
8971               8[236-9]
8972             )|
8973             5(?:
8974               55|
8975               6[2-5]|
8976               88
8977             )|
8978             6(?:
8979               3[2-578]|
8980               4[24-9]|
8981               5[34]|
8982               78|
8983               8[5-9]
8984             )|
8985             7(?:
8986               [079]7|
8987               2[0167]|
8988               3[45]|
8989               8[789]
8990             )|
8991             8(?:
8992               [2-5789]8|
8993               6[48]
8994             )|
8995             9(?:
8996               2[29]|
8997               6[79]|
8998               7[179]|
8999               8[789]|
9000               9[78]
9001             )
9002           )\d{4}
9003         </nationalNumberPattern>
9004         <exampleNumber>6713001234</exampleNumber>
9005       </fixedLine>
9006       <!-- We assume mobile phone numbers to be the same as fixed-line - further info unavailable
9007            -->
9008       <mobile>
9009         <nationalNumberPattern>
9010           671(?:
9011             3(?:
9012               00|
9013               3[39]|
9014               4[349]|
9015               55|
9016               6[26]
9017             )|
9018             4(?:
9019               56|
9020               7[1-9]|
9021               8[236-9]
9022             )|
9023             5(?:
9024               55|
9025               6[2-5]|
9026               88
9027             )|
9028             6(?:
9029               3[2-578]|
9030               4[24-9]|
9031               5[34]|
9032               78|
9033               8[5-9]
9034             )|
9035             7(?:
9036               [079]7|
9037               2[0167]|
9038               3[45]|
9039               8[789]
9040             )|
9041             8(?:
9042               [2-5789]8|
9043               6[48]
9044             )|
9045             9(?:
9046               2[29]|
9047               6[79]|
9048               7[179]|
9049               8[789]|
9050               9[78]
9051             )
9052           )\d{4}
9053         </nationalNumberPattern>
9054         <exampleNumber>6713001234</exampleNumber>
9055       </mobile>
9056       <tollFree>
9057         <nationalNumberPattern>
9058           8(?:
9059             00|
9060             55|
9061             66|
9062             77|
9063             88
9064           )[2-9]\d{6}
9065         </nationalNumberPattern>
9066         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9067         <exampleNumber>8002123456</exampleNumber>
9068       </tollFree>
9069       <premiumRate>
9070         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
9071         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9072         <exampleNumber>9002123456</exampleNumber>
9073       </premiumRate>
9074       <personalNumber>
9075         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
9076         <nationalNumberPattern>
9077           5(?:
9078             00|
9079             33|
9080             44
9081           )[2-9]\d{6}
9082         </nationalNumberPattern>
9083         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9084         <exampleNumber>5002345678</exampleNumber>
9085       </personalNumber>
9086       <emergency>
9087         <!-- http://www.justice.gov.gu/compileroflaws/gca/10gca/10gc084.PDF -->
9088         <nationalNumberPattern>911</nationalNumberPattern>
9089         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9090         <exampleNumber>911</exampleNumber>
9091       </emergency>
9092     </territory>
9093
9094     <!-- Guinea-Bissau -->
9095     <!-- http://www.itu.int/oth/T020200005C/en -->
9096     <territory id="GW" countryCode="245" internationalPrefix="00">
9097       <availableFormats>
9098         <numberFormat pattern="(\d{3})(\d{4})">
9099           <format>$1 $2</format>
9100         </numberFormat>
9101       </availableFormats>
9102       <generalDesc>
9103         <nationalNumberPattern>[3-79]\d{6}</nationalNumberPattern>
9104         <possibleNumberPattern>\d{7}</possibleNumberPattern>
9105       </generalDesc>
9106       <fixedLine>
9107         <nationalNumberPattern>
9108           3(?:
9109             2[0125]|
9110             3[1245]|
9111             4[12]|
9112             5[1-4]|
9113             70|
9114             9[1-467]
9115           )\d{4}
9116         </nationalNumberPattern>
9117         <exampleNumber>3201234</exampleNumber>
9118       </fixedLine>
9119       <mobile>
9120         <nationalNumberPattern>
9121           (?:
9122             [5-7]\d|
9123             9[012]
9124           )\d{5}
9125         </nationalNumberPattern>
9126         <exampleNumber>5012345</exampleNumber>
9127       </mobile>
9128       <voip>
9129         <nationalNumberPattern>40\d{5}</nationalNumberPattern>
9130         <exampleNumber>4012345</exampleNumber>
9131       </voip>
9132       <emergency>
9133         <!-- https://www.osac.gov/pages/ContentReportDetails.aspx?cid=10970 -->
9134         <nationalNumberPattern>11[378]</nationalNumberPattern>
9135         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9136         <exampleNumber>113</exampleNumber>
9137       </emergency>
9138     </territory>
9139
9140     <!-- Guyana -->
9141     <!-- http://www.itu.int/oth/T020200005D/en -->
9142     <territory id="GY" countryCode="592" internationalPrefix="001">
9143       <availableFormats>
9144         <numberFormat pattern="(\d{3})(\d{4})">
9145           <format>$1 $2</format>
9146         </numberFormat>
9147       </availableFormats>
9148       <generalDesc>
9149         <nationalNumberPattern>[2-4679]\d{6}</nationalNumberPattern>
9150         <possibleNumberPattern>\d{7}</possibleNumberPattern>
9151       </generalDesc>
9152       <fixedLine>
9153         <nationalNumberPattern>
9154           (?:
9155             2(?:
9156               1[6-9]|
9157               2[0-35-9]|
9158               3[1-4]|
9159               5[3-9]|
9160               6\d|
9161               7[0-24-79]
9162             )|
9163             3(?:
9164               2[25-9]|
9165               3\d
9166             )|
9167             4(?:
9168               4[0-24]|
9169               5[56]
9170             )|
9171             77[1-57]
9172           )\d{4}
9173         </nationalNumberPattern>
9174         <exampleNumber>2201234</exampleNumber>
9175       </fixedLine>
9176       <mobile>
9177         <!-- The ITU document only describes a few ranges for mobile numbers but there is evidence
9178              that SMS messages have been succesfully sent to numbers in the entire range prefixed
9179              with 6. -->
9180         <nationalNumberPattern>6\d{6}</nationalNumberPattern>
9181         <exampleNumber>6091234</exampleNumber>
9182       </mobile>
9183       <tollFree>
9184         <nationalNumberPattern>
9185           (?:
9186             289|
9187             862
9188           )\d{4}
9189         </nationalNumberPattern>
9190         <exampleNumber>2891234</exampleNumber>
9191       </tollFree>
9192       <premiumRate>
9193         <nationalNumberPattern>9008\d{3}</nationalNumberPattern>
9194         <exampleNumber>9008123</exampleNumber>
9195       </premiumRate>
9196       <emergency>
9197         <nationalNumberPattern>91[123]</nationalNumberPattern>
9198         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9199         <exampleNumber>911</exampleNumber>
9200       </emergency>
9201     </territory>
9202
9203     <!-- Hong Kong -->
9204     <!-- http://www.ofca.gov.hk/en/industry_focus/telecommunications/portability/index.html -->
9205     <territory id="HK" countryCode="852" internationalPrefix="00">
9206       <availableFormats>
9207         <numberFormat pattern="(\d{4})(\d{4})">
9208           <leadingDigits>
9209             [235-7]|
9210             [89](?:
9211               0[1-9]|
9212               [1-9]
9213             )
9214           </leadingDigits>
9215           <format>$1 $2</format>
9216         </numberFormat>
9217         <numberFormat pattern="(800)(\d{3})(\d{3})">
9218           <leadingDigits>800</leadingDigits>
9219           <format>$1 $2 $3</format>
9220         </numberFormat>
9221         <numberFormat pattern="(900)(\d{2})(\d{3})(\d{3})">
9222           <leadingDigits>900</leadingDigits>
9223           <format>$1 $2 $3 $4</format>
9224         </numberFormat>
9225         <numberFormat pattern="(900)(\d{2,5})">
9226           <leadingDigits>900</leadingDigits>
9227           <format>$1 $2</format>
9228         </numberFormat>
9229       </availableFormats>
9230       <generalDesc>
9231         <!-- Slightly more complex pattern to allow the country code to be stripped off if
9232              necessary. -->
9233         <nationalNumberPattern>
9234           [235-7]\d{7}|
9235           8\d{7,8}|
9236           9\d{4,10}
9237         </nationalNumberPattern>
9238         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9239       </generalDesc>
9240       <fixedLine>
9241         <nationalNumberPattern>
9242           (?:
9243             [23]\d|
9244             5[78]
9245           )\d{6}
9246         </nationalNumberPattern>
9247         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9248         <exampleNumber>21234567</exampleNumber>
9249       </fixedLine>
9250       <mobile>
9251         <nationalNumberPattern>
9252           (?:
9253             5[1-69]\d|
9254             6\d{2}|
9255             9(?:
9256               0[1-9]|
9257               [1-8]\d
9258             )
9259           )\d{5}
9260         </nationalNumberPattern>
9261         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9262         <exampleNumber>51234567</exampleNumber>
9263       </mobile>
9264       <pager>
9265         <nationalNumberPattern>7\d{7}</nationalNumberPattern>
9266         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9267         <exampleNumber>71234567</exampleNumber>
9268       </pager>
9269       <tollFree>
9270         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
9271         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9272         <exampleNumber>800123456</exampleNumber>
9273       </tollFree>
9274       <premiumRate>
9275         <nationalNumberPattern>
9276           900(?:
9277             [0-24-9]\d{7}|
9278             3\d{1,4}
9279           )
9280         </nationalNumberPattern>
9281         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9282         <exampleNumber>90012345678</exampleNumber>
9283       </premiumRate>
9284       <personalNumber>
9285         <nationalNumberPattern>8[1-3]\d{6}</nationalNumberPattern>
9286         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9287         <exampleNumber>81123456</exampleNumber>
9288       </personalNumber>
9289       <emergency>
9290         <nationalNumberPattern>
9291           112|
9292           99[29]
9293         </nationalNumberPattern>
9294         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9295         <exampleNumber>999</exampleNumber>
9296       </emergency>
9297    </territory>
9298
9299     <!-- Honduras -->
9300     <!-- http://www.itu.int/oth/T020200005F/en -->
9301     <!-- It seems there is no longer a trunk prefix in use, based on websites like
9302          http://www.howtocallabroad.com/codes.html and on seeing how locals write their numbers in
9303          national format. -->
9304     <territory id="HN" countryCode="504" internationalPrefix="00" >
9305       <availableFormats>
9306        <numberFormat pattern="(\d{4})(\d{4})">
9307          <format>$1-$2</format>
9308        </numberFormat>
9309       </availableFormats>
9310       <generalDesc>
9311         <nationalNumberPattern>[237-9]\d{7}</nationalNumberPattern>
9312         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9313       </generalDesc>
9314       <fixedLine>
9315         <!-- Extra prefixes 227[01389], 228X and 2292 were added from numbers found online. -->
9316         <nationalNumberPattern>
9317           2(?:
9318             2(?:
9319               0[019]|
9320               1[1-36]|
9321               [23]\d|
9322               4[056]|
9323               5[57]|
9324               7[01389]|
9325               8[0146-9]|
9326               9[012]
9327             )|
9328             4(?:
9329               2[3-59]|
9330               3[13-689]|
9331               4[0-68]|
9332               5[1-35]
9333             )|
9334             5(?:
9335               4[3-5]|
9336               5\d|
9337               6[56]|
9338               74
9339             )|
9340             6(?:
9341               4[0-378]|
9342               [56]\d|
9343               [78][0-8]|
9344               9[01]
9345             )|
9346             7(?:
9347               6[46-9]|
9348               7[02-9]|
9349               8[34]
9350             )|
9351             8(?:
9352               79|
9353               8[0-35789]|
9354               9[1-57-9]
9355             )
9356           )\d{4}
9357         </nationalNumberPattern>
9358         <exampleNumber>22123456</exampleNumber>
9359       </fixedLine>
9360       <mobile>
9361         <nationalNumberPattern>[37-9]\d{7}</nationalNumberPattern>
9362         <exampleNumber>91234567</exampleNumber>
9363       </mobile>
9364       <emergency>
9365         <nationalNumberPattern>199</nationalNumberPattern>
9366         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9367         <exampleNumber>199</exampleNumber>
9368       </emergency>
9369     </territory>
9370
9371     <!-- Croatia -->
9372     <!-- http://www.itu.int/oth/T0202000032/en -->
9373     <!-- http://en.wikipedia.org/wiki/%2B385 -->
9374     <territory id="HR" countryCode="385" internationalPrefix="00"
9375                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9376       <availableFormats>
9377         <!-- The plan says 1 XXX XXXX but the government and local telecom websites are formatted 1
9378              XXXX XXX, so we prefer that formatting here. These same sources prefer XXX XXX to XX
9379              XXXX as well. -->
9380        <numberFormat pattern="(1)(\d{4})(\d{3})">
9381          <leadingDigits>1</leadingDigits>
9382          <format>$1 $2 $3</format>
9383        </numberFormat>
9384        <numberFormat pattern="(6[09])(\d{4})(\d{3})">
9385          <leadingDigits>6[09]</leadingDigits>
9386          <format>$1 $2 $3</format>
9387        </numberFormat>
9388        <numberFormat pattern="(62)(\d{3})(\d{3,4})">
9389          <leadingDigits>62</leadingDigits>
9390          <format>$1 $2 $3</format>
9391        </numberFormat>
9392        <numberFormat pattern="([2-5]\d)(\d{3})(\d{3})">
9393          <leadingDigits>[2-5]</leadingDigits>
9394           <format>$1 $2 $3</format>
9395         </numberFormat>
9396         <numberFormat pattern="(9\d)(\d{3})(\d{3,4})">
9397           <leadingDigits>9</leadingDigits>
9398           <format>$1 $2 $3</format>
9399         </numberFormat>
9400         <numberFormat pattern="(9\d)(\d{4})(\d{4})">
9401           <leadingDigits>9</leadingDigits>
9402           <format>$1 $2 $3</format>
9403         </numberFormat>
9404         <numberFormat pattern="(9\d)(\d{3,4})(\d{3})(\d{3})">
9405           <leadingDigits>9</leadingDigits>
9406           <format>$1 $2 $3 $4</format>
9407         </numberFormat>
9408         <numberFormat pattern="(\d{2})(\d{2})(\d{2,3})">
9409           <leadingDigits>
9410             6[145]|
9411             7
9412           </leadingDigits>
9413           <format>$1 $2 $3</format>
9414         </numberFormat>
9415         <numberFormat pattern="(\d{2})(\d{3,4})(\d{3})">
9416           <leadingDigits>
9417             6[145]|
9418             7
9419           </leadingDigits>
9420           <format>$1 $2 $3</format>
9421         </numberFormat>
9422         <numberFormat pattern="(80[01])(\d{2})(\d{2,3})">
9423           <leadingDigits>8</leadingDigits>
9424           <format>$1 $2 $3</format>
9425         </numberFormat>
9426         <numberFormat pattern="(80[01])(\d{3,4})(\d{3})">
9427           <leadingDigits>8</leadingDigits>
9428           <format>$1 $2 $3</format>
9429         </numberFormat>
9430       </availableFormats>
9431       <generalDesc>
9432         <nationalNumberPattern>
9433           [1-7]\d{5,8}|
9434           [89]\d{6,11}
9435         </nationalNumberPattern>
9436         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
9437       </generalDesc>
9438       <fixedLine>
9439         <nationalNumberPattern>
9440           1\d{7}|
9441           (?:
9442             2[0-3]|
9443             3[1-5]|
9444             4[02-47-9]|
9445             5[1-3]
9446           )\d{6}
9447         </nationalNumberPattern>
9448         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
9449         <exampleNumber>12345678</exampleNumber>
9450       </fixedLine>
9451       <uan>
9452         <!-- ITU numbering plan doesn't specify the length of the numbers with prefix 62, but there
9453              are numbers on the internet with 6 or 7 digits after the prefix. -->
9454         <nationalNumberPattern>62\d{6,7}</nationalNumberPattern>
9455         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
9456         <exampleNumber>62123456</exampleNumber>
9457       </uan>
9458       <mobile>
9459         <nationalNumberPattern>9[1257-9]\d{6,10}</nationalNumberPattern>
9460         <possibleNumberPattern>\d{8,12}</possibleNumberPattern>
9461         <exampleNumber>912345678</exampleNumber>
9462       </mobile>
9463       <tollFree>
9464         <nationalNumberPattern>80[01]\d{4,7}</nationalNumberPattern>
9465         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
9466         <exampleNumber>8001234567</exampleNumber>
9467       </tollFree>
9468       <premiumRate>
9469         <!-- The prefixes 060, 061, 064, 065 and 069 are named as premium rate numbers by
9470              http://www.vipnet.hr/en/poslovni-korisnici/telefon-internet/vip-adsl-usluga#panel_4.
9471              -->
9472         <nationalNumberPattern>
9473           6(?:
9474             [09]\d{7}|
9475             [145]\d{4,7}
9476           )
9477         </nationalNumberPattern>
9478         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9479         <exampleNumber>611234</exampleNumber>
9480       </premiumRate>
9481       <personalNumber>
9482         <nationalNumberPattern>7[45]\d{4,7}</nationalNumberPattern>
9483         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9484         <exampleNumber>741234567</exampleNumber>
9485       </personalNumber>
9486       <emergency>
9487         <nationalNumberPattern>
9488           1(?:
9489             12|
9490             92
9491           )|
9492           9[34]
9493         </nationalNumberPattern>
9494         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
9495         <exampleNumber>112</exampleNumber>
9496       </emergency>
9497     </territory>
9498
9499     <!-- Haiti -->
9500     <!-- http://www.itu.int/oth/T020200005E/en -->
9501     <!-- http://www.numberingplans.com/ -->
9502     <territory id="HT" countryCode="509" internationalPrefix="00">
9503       <availableFormats>
9504         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
9505           <format>$1 $2 $3</format>
9506         </numberFormat>
9507       </availableFormats>
9508       <generalDesc>
9509         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
9510         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9511       </generalDesc>
9512       <fixedLine>
9513         <!-- The prefix 24 seems to be also used, based on online searches. -->
9514         <nationalNumberPattern>
9515           2(?:
9516             [24]\d|
9517             5[1-5]|
9518             94
9519           )\d{5}
9520         </nationalNumberPattern>
9521         <exampleNumber>22453300</exampleNumber>
9522       </fixedLine>
9523       <mobile>
9524         <!-- The prefix 31 seems to be also used, based on online searches. -->
9525         <nationalNumberPattern>
9526           (?:
9527             3[1-9]|
9528             4\d
9529           )\d{6}
9530         </nationalNumberPattern>
9531         <exampleNumber>34101234</exampleNumber>
9532       </mobile>
9533       <tollFree>
9534         <!-- ITU document says numbers with prefix 8 are "value-added services and free numbers
9535              without making any further distinction. However, http://www.numberingplans.com/ seems
9536              to suggest they are free. -->
9537         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
9538         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9539         <exampleNumber>80012345</exampleNumber>
9540       </tollFree>
9541       <voip>
9542         <!-- ITU document suggests 98\d{6}, but http://www.numberingplans.com/ restricts it to
9543              98[89]\d{5}. -->
9544         <nationalNumberPattern>98[89]\d{5}</nationalNumberPattern>
9545         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9546         <exampleNumber>98901234</exampleNumber>
9547       </voip>
9548       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
9549       <emergency>
9550         <nationalNumberPattern>11[48]</nationalNumberPattern>
9551         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9552         <exampleNumber>118</exampleNumber>
9553       </emergency>
9554     </territory>
9555
9556     <!-- Hungary -->
9557     <!-- http://www.itu.int/oth/T0202000061/en -->
9558     <territory id="HU" countryCode="36" internationalPrefix="00"
9559                nationalPrefix="06" nationalPrefixFormattingRule="($FG)">
9560       <!-- Although the national prefix is necessary for dialling, the preferred format (confirmed
9561            by a Hungarian person and following the yellow pages) is to omit this when formatting.
9562            Yellow pages: www.aranyoldalak.hu -->
9563       <availableFormats>
9564         <numberFormat pattern="(1)(\d{3})(\d{4})">
9565           <leadingDigits>1</leadingDigits>
9566           <format>$1 $2 $3</format>
9567         </numberFormat>
9568         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9569           <leadingDigits>[2-9]</leadingDigits>
9570           <format>$1 $2 $3</format>
9571         </numberFormat>
9572       </availableFormats>
9573       <generalDesc>
9574         <nationalNumberPattern>[1-9]\d{7,8}</nationalNumberPattern>
9575         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
9576       </generalDesc>
9577       <fixedLine>
9578         <!-- Includes numbers for corporate networks. -->
9579         <nationalNumberPattern>
9580           (?:
9581             1\d|
9582             2(?:
9583               1\d|
9584               [2-9]
9585             )|
9586             3[2-7]|
9587             4[24-9]|
9588             5[2-79]|
9589             6[23689]|
9590             7(?:
9591               1\d|
9592               [2-9]
9593             )|
9594             8[2-57-9]|
9595             9[2-69]
9596           )\d{6}
9597         </nationalNumberPattern>
9598         <exampleNumber>12345678</exampleNumber>
9599       </fixedLine>
9600       <mobile>
9601         <nationalNumberPattern>
9602           (?:
9603             [27]0|
9604             3[01]
9605           )\d{7}
9606         </nationalNumberPattern>
9607         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9608         <exampleNumber>201234567</exampleNumber>
9609       </mobile>
9610       <tollFree>
9611         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
9612         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9613         <exampleNumber>80123456</exampleNumber>
9614       </tollFree>
9615       <premiumRate>
9616         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
9617         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9618         <exampleNumber>90123456</exampleNumber>
9619       </premiumRate>
9620       <sharedCost>
9621         <nationalNumberPattern>40\d{6}</nationalNumberPattern>
9622         <possibleNumberPattern>\d{8}</possibleNumberPattern>
9623         <exampleNumber>40123456</exampleNumber>
9624       </sharedCost>
9625       <emergency>
9626         <nationalNumberPattern>
9627           1(?:
9628             0[457]|
9629             12
9630           )
9631         </nationalNumberPattern>
9632         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9633         <exampleNumber>112</exampleNumber>
9634       </emergency>
9635     </territory>
9636
9637     <!-- Indonesia -->
9638     <!-- http://www.itu.int/oth/T0202000064/en (from 2001, very out-of-date) -->
9639     <!-- http://en.wikipedia.org/wiki/%2B62 -->
9640     <territory id="ID" countryCode="62" internationalPrefix="0(?:0[1789]|10(?:00|1[67]))"
9641                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
9642       <availableFormats>
9643         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9644           pattern="(\d{2})(\d{7,8})">
9645           <leadingDigits>
9646             2[124]|
9647             [36]1
9648           </leadingDigits>
9649           <format>$1 $2</format>
9650         </numberFormat>
9651         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
9652           pattern="(\d{3})(\d{5,7})">
9653           <leadingDigits>
9654             [4579]|
9655             2[035-9]|
9656             [36][02-9]
9657           </leadingDigits>
9658           <format>$1 $2</format>
9659         </numberFormat>
9660         <numberFormat pattern="(8\d{2})(\d{3,4})(\d{3,4})">
9661           <leadingDigits>8[1-35-9]</leadingDigits>
9662           <format>$1-$2-$3</format>
9663         </numberFormat>
9664         <numberFormat pattern="(177)(\d{6,8})">
9665           <leadingDigits>1</leadingDigits>
9666           <format>$1 $2</format>
9667         </numberFormat>
9668         <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number, and examples on the web show
9669              that sometimes they are followed by less digits. -->
9670         <numberFormat pattern="(800)(\d{5,7})">
9671           <leadingDigits>800</leadingDigits>
9672           <format>$1 $2</format>
9673         </numberFormat>
9674         <numberFormat pattern="(809)(\d)(\d{3})(\d{3})">
9675           <leadingDigits>809</leadingDigits>
9676           <format>$1 $2 $3 $4</format>
9677         </numberFormat>
9678       </availableFormats>
9679       <generalDesc>
9680         <nationalNumberPattern>[1-9]\d{6,10}</nationalNumberPattern>
9681         <possibleNumberPattern>\d{5,11}</possibleNumberPattern>
9682       </generalDesc>
9683       <fixedLine>
9684         <!-- Area codes taken from wikipedia, with missing ones added from
9685              http://www.telkom.co.id/customer-services/area-and-country-code/?type=area.
9686              We also added 0770 after user feedback because it seems to be used on Bintan island.
9687              Where known, fixed mobile prefixes have been represented as Mobile. -->
9688         <nationalNumberPattern>
9689           2(?:
9690             1(?:
9691               [0-8]\d{6,7}|
9692               9\d{6}
9693             )|
9694             [24]\d{7,8}
9695           )|
9696           (?:
9697             2(?:
9698               [35][1-4]|
9699               6[0-8]|
9700               7[1-6]|
9701               8\d|
9702               9[1-8]
9703             )|
9704             3(?:
9705               1|
9706               2[1-578]|
9707               3[1-68]|
9708               4[1-3]|
9709               5[1-8]|
9710               6[1-3568]|
9711               7[0-46]|
9712               8\d
9713             )|
9714             4(?:
9715               0[1-589]|
9716               1[01347-9]|
9717               2[0-36-8]|
9718               3[0-24-68]|
9719               5[1-378]|
9720               6[1-5]|
9721               7[134]|
9722               8[1245]
9723             )|
9724             5(?:
9725               1[1-35-9]|
9726               2[25-8]|
9727               3[1246-9]|
9728               4[1-3589]|
9729               5[1-46]|
9730               6[1-8]
9731             )|
9732             6(?:
9733               19?|
9734               [25]\d|
9735               3[1-469]|
9736               4[1-6]
9737             )|
9738             7(?:
9739               1[1-46-9]|
9740               2[14-9]|
9741               [36]\d|
9742               4[1-8]|
9743               5[1-9]|
9744               7[0-36-9]
9745             )|
9746             9(?:
9747               0[12]|
9748               1[013-8]|
9749               2[0-479]|
9750               5[125-8]|
9751               6[23679]|
9752               7[159]|
9753               8[01346]
9754             )
9755           )\d{5,8}
9756         </nationalNumberPattern>
9757         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9758         <exampleNumber>612345678</exampleNumber>
9759       </fixedLine>
9760       <mobile>
9761         <!-- It is unclear exactly which prefixes could be mobile phones, based on the information
9762              on the wikipedia page. However, Bakrie have provided a list of their prefixes, which
9763              are captured below. The pattern covers the area code plus the first one-two digits of
9764              the subscriber number. -->
9765         <nationalNumberPattern>
9766           (?:
9767             2(?:
9768               1(?:
9769                 3[145]|
9770                 4[01]|
9771                 5[1-469]|
9772                 60|
9773                 8[0359]|
9774                 9\d
9775               )|
9776               2(?:
9777                 88|
9778                 9[1256]
9779               )|
9780               3[1-4]9|
9781               4(?:
9782                 36|
9783                 91
9784               )|
9785               5(?:
9786                 1[349]|
9787                 [2-4]9
9788               )|
9789               6[0-7]9|
9790               7(?:
9791                 [1-36]9|
9792                 4[39]
9793               )|
9794               8[1-5]9|
9795               9[1-48]9
9796             )|
9797             3(?:
9798               19[1-3]|
9799               2[12]9|
9800               3[13]9|
9801               4(?:
9802                 1[69]|
9803                 39
9804               )|
9805               5[14]9|
9806               6(?:
9807                 1[69]|
9808                 2[89]
9809               )|
9810               709
9811             )|
9812             4[13]19|
9813             5(?:
9814               1(?:
9815                 19|
9816                 8[39]
9817               )|
9818               4[129]9|
9819               6[12]9
9820             )|
9821             6(?:
9822               19[12]|
9823               2(?:
9824                 [23]9|
9825                 77
9826               )
9827             )|
9828             7(?:
9829               1[13]9|
9830               2[15]9|
9831               419|
9832               5(?:
9833                 1[89]|
9834                 29
9835               )|
9836               6[15]9|
9837               7[178]9
9838             )
9839           )\d{5,6}|
9840           8[1-35-9]\d{7,9}
9841         </nationalNumberPattern>
9842         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
9843         <exampleNumber>812345678</exampleNumber>
9844       </mobile>
9845       <tollFree>
9846         <nationalNumberPattern>
9847           177\d{6,8}|
9848           800\d{5,7}
9849         </nationalNumberPattern>
9850         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
9851         <exampleNumber>8001234567</exampleNumber>
9852       </tollFree>
9853       <!-- The information below is provided by an Indonesian -->
9854       <premiumRate>
9855         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
9856         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9857         <exampleNumber>8091234567</exampleNumber>
9858       </premiumRate>
9859       <emergency>
9860         <nationalNumberPattern>11[02389]</nationalNumberPattern>
9861         <possibleNumberPattern>\d{3}</possibleNumberPattern>
9862         <exampleNumber>112</exampleNumber>
9863       </emergency>
9864     </territory>
9865
9866     <!-- Ireland -->
9867     <!-- http://www.comreg.ie/licensing_and_services/numbering_plan_for_ireland.552.440.html -->
9868     <!-- http://www.comreg.ie/_fileupload/publications/ComReg1119.pdf -->
9869     <territory id="IE" countryCode="353" internationalPrefix="00"
9870                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
9871       <availableFormats>
9872         <numberFormat pattern="(1)(\d{3,4})(\d{4})">
9873           <leadingDigits>1</leadingDigits>
9874           <format>$1 $2 $3</format>
9875         </numberFormat>
9876         <numberFormat pattern="(\d{2})(\d{5})">
9877           <leadingDigits>
9878             2[24-9]|
9879             47|
9880             58|
9881             6[237-9]|
9882             9[35-9]
9883           </leadingDigits>
9884           <format>$1 $2</format>
9885         </numberFormat>
9886         <numberFormat pattern="(\d{3})(\d{5})">
9887           <leadingDigits>
9888             40[24]|
9889             50[45]
9890           </leadingDigits>
9891           <format>$1 $2</format>
9892         </numberFormat>
9893         <numberFormat pattern="(48)(\d{4})(\d{4})">
9894           <leadingDigits>48</leadingDigits>
9895           <format>$1 $2 $3</format>
9896         </numberFormat>
9897         <numberFormat pattern="(818)(\d{3})(\d{3})">
9898           <leadingDigits>81</leadingDigits>
9899           <format>$1 $2 $3</format>
9900         </numberFormat>
9901         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
9902           <leadingDigits>
9903             [24-69]|
9904             7[14]
9905           </leadingDigits>
9906           <format>$1 $2 $3</format>
9907         </numberFormat>
9908         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9909           pattern="([78]\d)(\d{3,4})(\d{4})">
9910           <leadingDigits>
9911             76|
9912             8[35-9]
9913           </leadingDigits>
9914           <format>$1 $2 $3</format>
9915         </numberFormat>
9916         <numberFormat nationalPrefixFormattingRule="$NP$FG"
9917           pattern="(700)(\d{3})(\d{3})">
9918           <leadingDigits>70</leadingDigits>
9919           <format>$1 $2 $3</format>
9920         </numberFormat>
9921         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(\d{4})(\d{3})(\d{3})">
9922           <leadingDigits>
9923             1(?:
9924               8[059]|
9925               5
9926             )
9927           </leadingDigits>
9928           <leadingDigits>
9929             1(?:
9930               8[059]0|
9931               5
9932             )
9933           </leadingDigits>
9934           <format>$1 $2 $3</format>
9935         </numberFormat>
9936       </availableFormats>
9937       <generalDesc>
9938         <nationalNumberPattern>[124-9]\d{6,9}</nationalNumberPattern>
9939         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9940       </generalDesc>
9941       <noInternationalDialling>
9942         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
9943         <possibleNumberPattern>\d{10}</possibleNumberPattern>
9944         <exampleNumber>1850123456</exampleNumber>
9945       </noInternationalDialling>
9946       <fixedLine>
9947         <!-- We allow 6-7 digit subscriber numbers for the 021 area code since that seems to be
9948              reflected by the numbers in the Yellow Pages. Another peculiarity is that 048 actually
9949              replaces 00 44 28 when Irish people dial, allowing them to easily dial Northern
9950              Ireland. We support these numbers here, although technically they are numbers for the
9951              UK. -->
9952         <nationalNumberPattern>
9953           1\d{7,8}|
9954           2(?:
9955             1\d{6,7}|
9956             3\d{7}|
9957             [24-9]\d{5}
9958           )|
9959           4(?:
9960             0[24]\d{5}|
9961             [1-469]\d{7}|
9962             5\d{6}|
9963             7\d{5}|
9964             8[0-46-9]\d{7}
9965           )|
9966           5(?:
9967             0[45]\d{5}|
9968             1\d{6}|
9969             [23679]\d{7}|
9970             8\d{5}
9971           )|
9972           6(?:
9973             1\d{6}|
9974             [237-9]\d{5}|
9975             [4-6]\d{7}
9976           )|
9977           7[14]\d{7}|
9978           9(?:
9979             1\d{6}|
9980             [04]\d{7}|
9981             [35-9]\d{5}
9982           )
9983         </nationalNumberPattern>
9984         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
9985         <exampleNumber>2212345</exampleNumber>
9986       </fixedLine>
9987       <mobile>
9988         <nationalNumberPattern>
9989           8(?:
9990             22\d{6}|
9991             [35-9]\d{7}
9992           )
9993         </nationalNumberPattern>
9994         <possibleNumberPattern>\d{9}</possibleNumberPattern>
9995         <exampleNumber>850123456</exampleNumber>
9996       </mobile>
9997       <tollFree>
9998         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
9999         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10000         <exampleNumber>1800123456</exampleNumber>
10001       </tollFree>
10002       <premiumRate>
10003         <nationalNumberPattern>
10004           15(?:
10005             1[2-8]|
10006             [2-8]0|
10007             9[089]
10008           )\d{6}
10009         </nationalNumberPattern>
10010         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10011         <exampleNumber>1520123456</exampleNumber>
10012       </premiumRate>
10013       <sharedCost>
10014         <nationalNumberPattern>18[59]0\d{6}</nationalNumberPattern>
10015         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10016         <exampleNumber>1850123456</exampleNumber>
10017       </sharedCost>
10018       <personalNumber>
10019         <nationalNumberPattern>700\d{6}</nationalNumberPattern>
10020         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10021         <exampleNumber>700123456</exampleNumber>
10022       </personalNumber>
10023       <voip>
10024         <nationalNumberPattern>76\d{7}</nationalNumberPattern>
10025         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10026         <exampleNumber>761234567</exampleNumber>
10027       </voip>
10028       <uan>
10029         <nationalNumberPattern>818\d{6}</nationalNumberPattern>
10030         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10031         <exampleNumber>818123456</exampleNumber>
10032       </uan>
10033       <voicemail>
10034         <nationalNumberPattern>8[35-9]\d{8}</nationalNumberPattern>
10035         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10036         <exampleNumber>8501234567</exampleNumber>
10037       </voicemail>
10038       <emergency>
10039         <nationalNumberPattern>
10040           112|
10041           999
10042         </nationalNumberPattern>
10043         <possibleNumberPattern>\d{3}</possibleNumberPattern>
10044         <exampleNumber>112</exampleNumber>
10045       </emergency>
10046     </territory>
10047
10048     <!-- Israel -->
10049     <!-- http://www.itu.int/oth/T020200006A/en -->
10050     <!-- http://en.wikipedia.org/wiki/%2B972 -->
10051     <!-- 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
10052          (in Hebrew) -->
10053     <!-- Formatting practice following wikipedia, and government sites. -->
10054     <territory id="IL" countryCode="972" internationalPrefix="0(?:0|1[2-9])"
10055                nationalPrefix="0" nationalPrefixFormattingRule="$FG">
10056       <availableFormats>
10057         <numberFormat nationalPrefixFormattingRule="$NP$FG"
10058           pattern="([2-489])(\d{3})(\d{4})">
10059           <leadingDigits>[2-489]</leadingDigits>
10060           <format>$1-$2-$3</format>
10061         </numberFormat>
10062         <numberFormat nationalPrefixFormattingRule="$NP$FG"
10063           pattern="([57]\d)(\d{3})(\d{4})">
10064           <leadingDigits>[57]</leadingDigits>
10065           <format>$1-$2-$3</format>
10066         </numberFormat>
10067         <numberFormat pattern="(1)([7-9]\d{2})(\d{3})(\d{3})">
10068           <leadingDigits>1[7-9]</leadingDigits>
10069           <format>$1-$2-$3-$4</format>
10070         </numberFormat>
10071         <!-- The following number is for hospitals. -->
10072         <numberFormat pattern="(1255)(\d{3})">
10073           <leadingDigits>125</leadingDigits>
10074           <format>$1-$2</format>
10075         </numberFormat>
10076         <numberFormat pattern="(1200)(\d{3})(\d{3})">
10077           <leadingDigits>120</leadingDigits>
10078           <format>$1-$2-$3</format>
10079         </numberFormat>
10080         <numberFormat pattern="(1212)(\d{2})(\d{2})">
10081           <leadingDigits>121</leadingDigits>
10082           <format>$1-$2-$3</format>
10083         </numberFormat>
10084         <!-- The following is for voicemail access. -->
10085         <numberFormat pattern="(1599)(\d{6})">
10086           <leadingDigits>15</leadingDigits>
10087           <format>$1-$2</format>
10088         </numberFormat>
10089         <!-- These are 4-digit star numbers which are only accessible within Israel and must be
10090              dialed with a star in front of the number. -->
10091         <numberFormat pattern="(\d{4})">
10092           <leadingDigits>[2-689]</leadingDigits>
10093           <format>*$1</format>
10094         </numberFormat>
10095       </availableFormats>
10096       <generalDesc >
10097         <nationalNumberPattern>
10098           [17]\d{6,9}|
10099           [2-589]\d{3}(?:\d{3,6})?|
10100           6\d{3}
10101         </nationalNumberPattern>
10102         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10103       </generalDesc>
10104       <noInternationalDialling>
10105         <nationalNumberPattern>
10106           1700\d{6}|
10107           [2-689]\d{3}
10108         </nationalNumberPattern>
10109         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
10110         <exampleNumber>1700123456</exampleNumber>
10111       </noInternationalDialling>
10112       <fixedLine>
10113         <nationalNumberPattern>[2-489]\d{7}</nationalNumberPattern>
10114         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
10115         <exampleNumber>21234567</exampleNumber>
10116       </fixedLine>
10117       <mobile>
10118         <!-- The ITU document has only some of these prefixes - wikipedia lists more. We are fairly
10119              sure wikipedia is accurate based on news coverage of the launch of these numbers. -->
10120         <nationalNumberPattern>
10121           5(?:
10122             [02347-9]\d{2}|
10123             5(?:
10124               2[23]|
10125               3[34]|
10126               4[45]|
10127               5[5689]|
10128               6[67]|
10129               7[78]|
10130               8[89]
10131             )|
10132             6[2-9]\d
10133           )\d{5}
10134         </nationalNumberPattern>
10135         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10136         <exampleNumber>501234567</exampleNumber>
10137       </mobile>
10138       <tollFree>
10139         <!-- Online 1-809 numbers now classify themselves as "toll-free". -->
10140         <nationalNumberPattern>
10141           1(?:
10142             80[019]\d{3}|
10143             255
10144           )\d{3}
10145         </nationalNumberPattern>
10146         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
10147         <exampleNumber>1800123456</exampleNumber>
10148       </tollFree>
10149       <premiumRate>
10150           <!-- Peculiarly, one source states that 1956 and 1957 are the new premium rate prefixes.
10151                However, no online numbers starting with these prefixes can be found, and this data
10152                is not found in any other source. -->
10153           <!-- 1200 and 1212 numbers are for televoting. -->
10154         <nationalNumberPattern>
10155           1(?:
10156             212|
10157             (?:
10158               9(?:
10159                 0[01]|
10160                 19
10161               )|
10162               200
10163             )\d{2}
10164           )\d{4}
10165         </nationalNumberPattern>
10166         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
10167         <exampleNumber>1919123456</exampleNumber>
10168       </premiumRate>
10169       <sharedCost>
10170         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
10171         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10172         <exampleNumber>1700123456</exampleNumber>
10173       </sharedCost>
10174       <voip>
10175         <!-- These rules are a union of the wikipedia and ITU document prefixes. They are mostly
10176              marked as VoIP on wikipedia, but it seems they may indeed be DID (Direct Inward
10177              Dialing) numbers, that most people forward to VoIP numbers. -->
10178         <nationalNumberPattern>
10179           7(?:
10180             2[23]\d|
10181             3[237]\d|
10182             47\d|
10183             6(?:
10184               5\d|
10185               8[08]
10186             )|
10187             7\d{2}|
10188             8(?:
10189               33|
10190               55|
10191               77|
10192               81
10193             )
10194           )\d{5}
10195         </nationalNumberPattern>
10196         <possibleNumberPattern>\d{9}</possibleNumberPattern>
10197         <exampleNumber>771234567</exampleNumber>
10198       </voip>
10199       <uan>
10200         <!-- 4-digit star numbers 1-599 numbers. The latter are actually labelled "interactive
10201              voicemail" in the ITU document, but according to reports from businesses in Israel and
10202              the Hebrew version of the wikipedia page, these are actually a router for business
10203              calls, and incur a normal call cost on account of the caller. -->
10204         <nationalNumberPattern>
10205           [2-689]\d{3}|
10206           1599\d{6}
10207         </nationalNumberPattern>
10208         <possibleNumberPattern>\d{4}(?:\d{6})?</possibleNumberPattern>
10209         <exampleNumber>1599123456</exampleNumber>
10210       </uan>
10211       <emergency>
10212         <nationalNumberPattern>
10213           1(?:
10214             0[012]|
10215             12
10216           )
10217         </nationalNumberPattern>
10218         <possibleNumberPattern>\d{3}</possibleNumberPattern>
10219         <exampleNumber>112</exampleNumber>
10220       </emergency>
10221     </territory>
10222
10223     <!-- Isle of Man -->
10224     <!-- Inherits formatting rules from the UK. -->
10225     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
10226     <territory id="IM" countryCode="44" internationalPrefix="00"
10227                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
10228       <generalDesc>
10229         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
10230         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10231       </generalDesc>
10232       <areaCodeOptional>
10233         <nationalNumberPattern>1624[2-9]\d{5}</nationalNumberPattern>
10234         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10235         <exampleNumber>1624250123</exampleNumber>
10236       </areaCodeOptional>
10237       <!-- Specific to IM. -->
10238       <fixedLine>
10239         <!-- 1624 with 10 digits. -->
10240         <nationalNumberPattern>1624\d{6}</nationalNumberPattern>
10241         <exampleNumber>1624456789</exampleNumber>
10242       </fixedLine>
10243       <mobile>
10244         <!-- 7524, 7624, 7924 with 10 digits. -->
10245         <nationalNumberPattern>7[569]24\d{6}</nationalNumberPattern>
10246         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10247         <exampleNumber>7924123456</exampleNumber>
10248       </mobile>
10249       <tollFree>
10250         <!-- 808 162 with 10 digits. -->
10251         <nationalNumberPattern>808162\d{4}</nationalNumberPattern>
10252         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10253         <exampleNumber>8081624567</exampleNumber>
10254       </tollFree>
10255       <premiumRate>
10256         <!-- 872 299, 900 624, 901 624, 906 624, 907 624 with 10 digits. -->
10257         <nationalNumberPattern>
10258           (?:
10259             872299|
10260             90[0167]624
10261           )\d{4}
10262         </nationalNumberPattern>
10263         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10264         <exampleNumber>9016247890</exampleNumber>
10265       </premiumRate>
10266       <sharedCost>
10267         <!-- 844 040 6, 844 090 6, 845 624, 870 624 with 10 digits. -->
10268         <nationalNumberPattern>
10269           8(?:
10270             4(?:
10271               40[49]06|
10272               5624\d
10273             )|
10274             70624\d
10275           )\d{3}
10276         </nationalNumberPattern>
10277         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10278         <exampleNumber>8456247890</exampleNumber>
10279       </sharedCost>
10280       <!-- Other numbers as per GB. -->
10281       <personalNumber>
10282         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
10283         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10284         <exampleNumber>7012345678</exampleNumber>
10285       </personalNumber>
10286       <voip>
10287         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
10288         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10289         <exampleNumber>5612345678</exampleNumber>
10290       </voip>
10291       <uan>
10292         <!-- 308 162, 33d, 344 040 6, 344 090 6, 345 624, 370 624, 372 299, 55 with 10 digits. -->
10293         <nationalNumberPattern>
10294           3(?:
10295             08162\d|
10296             3\d{5}|
10297             4(?:
10298               40[49]06|
10299               5624\d
10300             )|
10301             7(?:
10302               0624\d|
10303               2299\d
10304             )
10305           )\d{3}|
10306           55\d{8}
10307         </nationalNumberPattern>
10308         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10309         <exampleNumber>5512345678</exampleNumber>
10310       </uan>
10311       <emergency>
10312         <!-- http://www.directory.im/directory_useful.aspx -->
10313         <nationalNumberPattern>999</nationalNumberPattern>
10314         <possibleNumberPattern>\d{3}</possibleNumberPattern>
10315         <exampleNumber>999</exampleNumber>
10316       </emergency>
10317     </territory>
10318
10319     <!-- India -->
10320     <!-- http://www.dot.gov.in/numbering_plan/numberplanindex.htm -->
10321     <!-- http://www.itu.int/oth/T0202000063/en -->
10322     <!-- http://en.wikipedia.org/wiki/%2B91 -->
10323     <!-- http://www.coai.in/msccodes.php -->
10324     <!-- Note that several changes in area codes have occurred since the numbering plan was released
10325          - fixed line changes are notified on the www.bsnl.co.in website. Area codes can be verified
10326            here at http://dq.ndc.bsnl.co.in/bsnl-web/stdSearch.seam. -->
10327     <territory id="IN" countryCode="91" internationalPrefix="00" nationalPrefix="0"
10328                nationalPrefixFormattingRule="$NP$FG" nationalPrefixOptionalWhenFormatting="true" >
10329        <availableFormats>
10330          <!-- Mobile numbers. -->
10331          <numberFormat pattern="(\d{2})(\d{2})(\d{6})">
10332            <leadingDigits>
10333              7(?:
10334                2[0579]|
10335                3[057-9]|
10336                4[0-389]|
10337                5[024-9]|
10338                6[0-35-9]|
10339                7|
10340                8[0-79]
10341              )|
10342              8(?:
10343                0[015689]|
10344                1[0-57-9]|
10345                2[2356-9]|
10346                3[0-57-9]|
10347                [45]|
10348                6[0245789]|
10349                7[1-69]|
10350                8[0124-9]|
10351                9[02-9]
10352              )|
10353              9
10354            </leadingDigits>
10355            <leadingDigits>
10356              7(?:
10357                2(?:
10358                  0[04-9]|
10359                  5[09]|
10360                  7[5-8]|
10361                  9[389]
10362                )|
10363                3(?:
10364                  0[1-9]|
10365                  [58]|
10366                  7[3679]|
10367                  9[689]
10368                )|
10369                4(?:
10370                  0[1-9]|
10371                  1[15-9]|
10372                  [29][89]|
10373                  39|
10374                  8[389]
10375                )|
10376                5(?:
10377                  0|
10378                  [47]9|
10379                  [25]0|
10380                  6[6-9]|
10381                  [89][7-9]
10382                )|
10383                6(?:
10384                  0[027]|
10385                  12|
10386                  20|
10387                  3[19]|
10388                  5[45]|
10389                  6[5-9]|
10390                  7[679]|
10391                  9[1-46-9]
10392                )|
10393                7(?:
10394                  0[2-9]|
10395                  [1-79]|
10396                  8[1-9]
10397                )|
10398                8(?:
10399                  [0-7]|
10400                  9[013-9]
10401                )
10402              )|
10403              8(?:
10404                0(?:
10405                  [01589]|
10406                  6[67]
10407                )|
10408                1(?:
10409                  [02-589]|
10410                  1[0135-9]|
10411                  7[0-79]
10412                )|
10413                2(?:
10414                  [236-9]|
10415                  5[1-9]
10416                )|
10417                3(?:
10418                  [0357-9]|
10419                  4[1-9]
10420                )|
10421                [45]|
10422                6[02457-9]|
10423                7[1-69]|
10424                8(?:
10425                  [0-26-9]|
10426                  44|
10427                  5[2-9]
10428                )|
10429                9(?:
10430                  [035-9]|
10431                  2[2-9]|
10432                  4[0-8]
10433                )
10434              )|
10435              9
10436            </leadingDigits>
10437            <format>$1 $2 $3</format>
10438          </numberFormat>
10439          <!-- 2 digits area code -->
10440          <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
10441            <leadingDigits>
10442              11|
10443              2[02]|
10444              33|
10445              4[04]|
10446              79|
10447              80[2-46]
10448            </leadingDigits>
10449            <format>$1 $2 $3</format>
10450          </numberFormat>
10451          <!-- 3 digit area codes that don't clash with mobile patterns. -->
10452          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10453            <leadingDigits>
10454              1(?:
10455                2[0-249]|
10456                3[0-25]|
10457                4[145]|
10458                [569][14]|
10459                7[1257]|
10460                8[1346]|
10461                [68][1-9]
10462              )|
10463              2(?:
10464                1[257]|
10465                3[013]|
10466                4[01]|
10467                5[0137]|
10468                6[0158]|
10469                78|
10470                8[1568]|
10471                9[14]
10472              )|
10473              3(?:
10474                26|
10475                4[1-3]|
10476                5[34]|
10477                6[01489]|
10478                7[02-46]|
10479                8[159]
10480              )|
10481              4(?:
10482                1[36]|
10483                2[1-47]|
10484                3[15]|
10485                5[12]|
10486                6[126-9]|
10487                7[0-24-9]|
10488                8[013-57]|
10489                9[014-7]
10490              )|
10491              5(?:
10492                [136][25]|
10493                22|
10494                4[28]|
10495                5[12]|
10496                [78]1|
10497                9[15]
10498              )|
10499              6(?:
10500                12|
10501                [2345]1|
10502                57|
10503                6[13]|
10504                7[14]|
10505                80
10506              )
10507            </leadingDigits>
10508            <format>$1 $2 $3</format>
10509          </numberFormat>
10510          <!-- Three-digit area codes that potentially overlap with mobile. -->
10511          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10512            <leadingDigits>
10513              7(?:
10514                12|
10515                2[14]|
10516                3[134]|
10517                4[47]|
10518                5[15]|
10519                [67]1|
10520                88
10521              )
10522            </leadingDigits>
10523            <leadingDigits>
10524              7(?:
10525                12|
10526                2[14]|
10527                3[134]|
10528                4[47]|
10529                5(?:
10530                  1|
10531                  5[2-6]
10532                )|
10533                [67]1|
10534                88
10535              )
10536            </leadingDigits>
10537            <format>$1 $2 $3</format>
10538          </numberFormat>
10539          <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
10540            <leadingDigits>
10541              8(?:
10542                16|
10543                2[014]|
10544                3[126]|
10545                6[136]|
10546                7[078]|
10547                8[34]|
10548                91
10549              )
10550            </leadingDigits>
10551            <format>$1 $2 $3</format>
10552          </numberFormat>
10553          <!-- 4 digits area code -->
10554          <!-- Fallback for fixed-line numbers. -->
10555          <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
10556            <leadingDigits>
10557              1(?:
10558                [2-579]|
10559                [68][1-9]
10560              )|
10561              [2-8]
10562            </leadingDigits>
10563            <format>$1 $2 $3</format>
10564          </numberFormat>
10565          <numberFormat nationalPrefixFormattingRule="$FG"
10566            pattern="(1600)(\d{2})(\d{4})">
10567            <leadingDigits>160</leadingDigits>
10568            <leadingDigits>1600</leadingDigits>
10569            <format>$1 $2 $3</format>
10570          </numberFormat>
10571          <numberFormat nationalPrefixFormattingRule="$FG"
10572            pattern="(1800)(\d{4,5})">
10573            <leadingDigits>180</leadingDigits>
10574            <leadingDigits>1800</leadingDigits>
10575            <format>$1 $2</format>
10576          </numberFormat>
10577          <numberFormat nationalPrefixFormattingRule="$FG"
10578            pattern="(18[06]0)(\d{2,4})(\d{4})">
10579            <leadingDigits>18[06]</leadingDigits>
10580            <leadingDigits>18[06]0</leadingDigits>
10581            <format>$1 $2 $3</format>
10582          </numberFormat>
10583          <!-- Televoting numbers. Formatting information is from
10584               http://www.bsnl.co.in/service/telev.htm -->
10585          <numberFormat nationalPrefixFormattingRule="$FG"
10586            pattern="(\d{4})(\d{3})(\d{4})(\d{2})">
10587            <leadingDigits>18[06]</leadingDigits>
10588            <leadingDigits>
10589              18(?:
10590                03|
10591                6[12]
10592              )
10593            </leadingDigits>
10594            <format>$1 $2 $3 $4</format>
10595          </numberFormat>
10596       </availableFormats>
10597       <generalDesc>
10598         <nationalNumberPattern>
10599           1\d{7,12}|
10600           [2-9]\d{9,10}
10601         </nationalNumberPattern>
10602         <possibleNumberPattern>\d{6,13}</possibleNumberPattern>
10603       </generalDesc>
10604       <noInternationalDialling>
10605         <nationalNumberPattern>
10606           1(?:
10607             600\d{6}|
10608             8(?:
10609               0(?:
10610                 0\d{4,8}|
10611                 3\d{9}
10612               )|
10613               6(?:
10614                 0\d{7}|
10615                 [12]\d{9}
10616               )
10617             )
10618            )
10619         </nationalNumberPattern>
10620         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10621         <exampleNumber>1800123456</exampleNumber>
10622       </noInternationalDialling>
10623       <fixedLine>
10624         <!-- This is a list of the 2 and 3 digit area codes and the first 3 digits of 4 digit area
10625              codes, so we can check the following digit belongs to one of the operator-codes (2-7).
10626              Operator codes are from wikipedia, with the addition of 5 (HFCL Infotel in some areas).
10627              Not all operator codes are available in all areas, but we don't maintain that
10628              distinction here.
10629              Area codes starting with a 7 are listed separately, since the prefixes need to be more
10630              detailed so they clash less with mobile phone prefixes. -->
10631         <nationalNumberPattern>
10632           (?:
10633             11|
10634             2[02]|
10635             33|
10636             4[04]|
10637             79
10638           )[2-7]\d{7}|
10639           80[2-467]\d{7}|
10640           (?:
10641             1(?:
10642               2[0-249]|
10643               3[0-25]|
10644               4[145]|
10645               [59][14]|
10646               6[014]|
10647               7[1257]|
10648               8[01346]
10649             )|
10650             2(?:
10651               1[257]|
10652               3[013]|
10653               4[01]|
10654               5[0137]|
10655               6[0158]|
10656               78|
10657               8[1568]|
10658               9[14]
10659             )|
10660             3(?:
10661               26|
10662               4[1-3]|
10663               5[34]|
10664               6[01489]|
10665               7[02-46]|
10666               8[159]
10667             )|
10668             4(?:
10669               1[36]|
10670               2[1-47]|
10671               3[15]|
10672               5[12]|
10673               6[126-9]|
10674               7[0-24-9]|
10675               8[013-57]|
10676               9[014-7]
10677             )|
10678             5(?:
10679               [136][25]|
10680               22|
10681               4[28]|
10682               5[12]|
10683               [78]1|
10684               9[15]
10685             )|
10686             6(?:
10687               12|
10688               [2345]1|
10689               57|
10690               6[13]|
10691               7[14]|
10692               80
10693             )|
10694             7(?:
10695               12|
10696               2[14]|
10697               3[134]|
10698               4[47]|
10699               5[15]|
10700               [67]1|
10701               88
10702             )|
10703             8(?:
10704               16|
10705               2[014]|
10706               3[126]|
10707               6[136]|
10708               7[078]|
10709               8[34]|
10710               91
10711             )
10712           )[2-7]\d{6}|
10713           (?:
10714             (?:
10715               1(?:
10716                 2[35-8]|
10717                 3[346-9]|
10718                 4[236-9]|
10719                 [59][0235-9]|
10720                 6[235-9]|
10721                 7[34689]|
10722                 8[257-9]
10723               )|
10724               2(?:
10725                 1[134689]|
10726                 3[24-8]|
10727                 4[2-8]|
10728                 5[25689]|
10729                 6[2-4679]|
10730                 7[13-79]|
10731                 8[2-479]|
10732                 9[235-9]
10733               )|
10734               3(?:
10735                 01|
10736                 1[79]|
10737                 2[1-5]|
10738                 4[25-8]|
10739                 5[125689]|
10740                 6[235-7]|
10741                 7[157-9]|
10742                 8[2-467]
10743               )|
10744               4(?:
10745                 1[14578]|
10746                 2[5689]|
10747                 3[2-467]|
10748                 5[4-7]|
10749                 6[35]|
10750                 73|
10751                 8[2689]|
10752                 9[2389]
10753               )|
10754               5(?:
10755                 [16][146-9]|
10756                 2[14-8]|
10757                 3[1346]|
10758                 4[14-69]|
10759                 5[46]|
10760                 7[2-4]|
10761                 8[2-8]|
10762                 9[246]
10763               )|
10764               6(?:
10765                 1[1358]|
10766                 2[2457]|
10767                 3[2-4]|
10768                 4[235-7]|
10769                 [57][2-689]|
10770                 6[24-58]|
10771                 8[1-6]
10772               )|
10773               8(?:
10774                 1[1357-9]|
10775                 2[235-8]|
10776                 3[03-57-9]|
10777                 4[0-24-9]|
10778                 5\d|
10779                 6[2457-9]|
10780                 7[1-6]|
10781                 8[1256]|
10782                 9[2-4]
10783               )
10784             )\d|
10785             7(?:
10786               (?:
10787                 1[013-9]|
10788                 2[0235-9]|
10789                 3[2679]|
10790                 4[1-35689]|
10791                 5[2-46-9]|
10792                 [67][02-9]|
10793                 9\d
10794               )\d|
10795               8(?:
10796                 2[0-6]|
10797                 [013-8]\d
10798               )
10799             )
10800           )[2-7]\d{5}
10801         </nationalNumberPattern>
10802         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10803         <exampleNumber>1123456789</exampleNumber>
10804       </fixedLine>
10805       <!-- http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India -->
10806       <!-- The document titled "List of MSC codes" linked off
10807            http://www.dot.gov.in/access-services/national-numbering-plan-2003 was helpful but last
10808            updated 2012 - more updates at http://www.dot.gov.in/access-services/allotment-msc-codes. -->
10809       <mobile>
10810         <!-- A couple of additional prefixes found neither on the wikipedia page nor in the MSC
10811              codes list, are added because SMS messages have been successfully sent to these
10812              numbers. It seems almost impossible to know for some of these numbers whether they are
10813              land-line or mobile, since the ranges overlap. Extra prefixes added: 8299, 8309.
10814              New prefixes were added based on the document provided from mobile carriers:
10815              https://code.google.com/p/libphonenumber/issues/detail?id=260 -->
10816         <nationalNumberPattern>
10817           (?:
10818             7(?:
10819               2(?:
10820                 0[04-9]|
10821                 5[09]|
10822                 7[5-8]|
10823                 9[389]
10824               )|
10825               3(?:
10826                 0[1-9]|
10827                 [58]\d|
10828                 7[3679]|
10829                 9[689]
10830               )|
10831               4(?:
10832                 0[1-9]|
10833                 1[15-9]|
10834                 [29][89]|
10835                 39|
10836                 8[389]
10837               )|
10838               5(?:
10839                 0\d|
10840                 [47]9|
10841                 [25]0|
10842                 6[6-9]|
10843                 [89][7-9]
10844               )|
10845               6(?:
10846                 0[027]|
10847                 12|
10848                 20|
10849                 3[19]|
10850                 5[45]|
10851                 6[5-9]|
10852                 7[679]|
10853                 9[1-46-9]
10854               )|
10855               7(?:
10856                 0[2-9]|
10857                 [1-79]\d|
10858                 8[1-9]
10859               )|
10860               8(?:
10861                 [0-7]\d|
10862                 9[013-9]
10863               )
10864             )|
10865             8(?:
10866               0(?:
10867                 [01589]\d|
10868                 6[67]
10869               )|
10870               1(?:
10871                 [02-589]\d|
10872                 1[0135-9]|
10873                 7[0-79]
10874               )|
10875               2(?:
10876                 [236-9]\d|
10877                 5[1-9]
10878               )|
10879               3(?:
10880                 [0357-9]\d|
10881                 4[1-9]
10882               )|
10883               [45]\d{2}|
10884               6[02457-9]\d|
10885               7[1-69]\d|
10886               8(?:
10887                 [0-26-9]\d|
10888                 44|
10889                 5[2-9]
10890               )|
10891               9(?:
10892                 [035-9]\d|
10893                 2[2-9]|
10894                 4[0-8]
10895               )
10896             )|
10897             9\d{3}
10898           )\d{6}
10899         </nationalNumberPattern>
10900         <possibleNumberPattern>\d{10}</possibleNumberPattern>
10901         <exampleNumber>9123456789</exampleNumber>
10902       </mobile>
10903       <tollFree>
10904         <!-- Information gathered from sites such as
10905              http://www.surfindia.com/india-facts/toll-free-no.html and
10906              http://indmusings.blogspot.com/2008/09/free-help-line-numbersindia.html
10907              http://www.bsnl.co.in/service/telev.htm -->
10908         <nationalNumberPattern>
10909           1(?:
10910             600\d{6}|
10911             80(?:
10912               0\d{4,8}|
10913               3\d{9}
10914             )
10915           )
10916         </nationalNumberPattern>
10917         <possibleNumberPattern>\d{8,13}</possibleNumberPattern>
10918         <exampleNumber>1800123456</exampleNumber>
10919       </tollFree>
10920       <premiumRate>
10921         <!-- Only televoting numbers are covered here for now. The 900 numbers are not covered
10922              because they overlap with mobile, and we haven't found any real numbers online. -->
10923         <nationalNumberPattern>186[12]\d{9}</nationalNumberPattern>
10924         <possibleNumberPattern>\d{13}</possibleNumberPattern>
10925         <exampleNumber>1861123456789</exampleNumber>
10926       </premiumRate>
10927       <uan>
10928         <nationalNumberPattern>1860\d{7}</nationalNumberPattern>
10929         <possibleNumberPattern>\d{11}</possibleNumberPattern>
10930         <exampleNumber>18603451234</exampleNumber>
10931       </uan>
10932       <emergency>
10933         <nationalNumberPattern>
10934           1(?:
10935             0[0128]|
10936             12|
10937             298
10938           )|
10939           2611
10940         </nationalNumberPattern>
10941         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
10942         <exampleNumber>108</exampleNumber>
10943       </emergency>
10944     </territory>
10945
10946     <!-- British Indian Ocean Territory / Diego Garcia -->
10947     <!-- http://www.itu.int/oth/T0202000039/en -->
10948     <territory id="IO" countryCode="246" internationalPrefix="00">
10949       <availableFormats>
10950         <numberFormat pattern="(\d{3})(\d{4})">
10951           <format>$1 $2</format>
10952         </numberFormat>
10953       </availableFormats>
10954       <generalDesc>
10955         <nationalNumberPattern>3\d{6}</nationalNumberPattern>
10956         <possibleNumberPattern>\d{7}</possibleNumberPattern>
10957       </generalDesc>
10958       <fixedLine>
10959         <nationalNumberPattern>37\d{5}</nationalNumberPattern>
10960         <exampleNumber>3709100</exampleNumber>
10961       </fixedLine>
10962       <mobile>
10963         <nationalNumberPattern>38\d{5}</nationalNumberPattern>
10964         <exampleNumber>3801234</exampleNumber>
10965       </mobile>
10966       <!-- It seems that there are no emergency numbers for this island. -->
10967     </territory>
10968
10969     <!-- Iraq -->
10970     <!-- http://en.wikipedia.org/wiki/%2B964 -->
10971     <!-- http://wtng.info/wtng-964-ik.html -->
10972     <territory id="IQ" countryCode="964" internationalPrefix="00"
10973                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
10974       <availableFormats>
10975         <numberFormat pattern="(1)(\d{3})(\d{4})">
10976           <leadingDigits>1</leadingDigits>
10977           <format>$1 $2 $3</format>
10978         </numberFormat>
10979         <numberFormat pattern="([2-6]\d)(\d{3})(\d{3,4})">
10980           <leadingDigits>[2-6]</leadingDigits>
10981           <format>$1 $2 $3</format>
10982         </numberFormat>
10983         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
10984           <leadingDigits>7</leadingDigits>
10985           <format>$1 $2 $3</format>
10986         </numberFormat>
10987       </availableFormats>
10988       <generalDesc>
10989         <nationalNumberPattern>[1-7]\d{7,9}</nationalNumberPattern>
10990         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
10991       </generalDesc>
10992       <fixedLine>
10993         <nationalNumberPattern>
10994           1\d{7}|
10995           (?:
10996             2[13-5]|
10997             3[02367]|
10998             4[023]|
10999             5[03]|
11000             6[026]
11001           )\d{6,7}
11002         </nationalNumberPattern>
11003         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11004         <exampleNumber>12345678</exampleNumber>
11005       </fixedLine>
11006       <mobile>
11007         <nationalNumberPattern>7[3-9]\d{8}</nationalNumberPattern>
11008         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11009         <exampleNumber>7912345678</exampleNumber>
11010       </mobile>
11011       <!-- No tollFree or premiumRate information can be found. -->
11012       <!-- No national emergency numbers were located for Iraq. -->
11013     </territory>
11014
11015     <!-- Iran, Islamic Republic of -->
11016     <!-- http://en.wikipedia.org/wiki/%2B98 -->
11017     <!-- http://www.itu.int/oth/T0202000066/en -->
11018     <!-- http://www.tct.ir/?siteid=1&pageid=195 -->
11019     <!-- http://118.tct.ir/citycode.htm -->
11020     <territory id="IR" countryCode="98" internationalPrefix="00"
11021                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
11022       <availableFormats>
11023         <!-- Formatting follows wikipedia. -->
11024         <numberFormat pattern="(2[15])(\d{3,5})">
11025           <!-- We exclude the 255 and 256 prefixes, which do not belong to Qom as of yet. -->
11026           <leadingDigits>
11027             2(?:
11028               1|
11029               5[0-47-9]
11030             )
11031           </leadingDigits>
11032           <format>$1 $2</format>
11033         </numberFormat>
11034         <numberFormat pattern="(2[15])(\d{3})(\d{3,4})">
11035           <leadingDigits>
11036             2(?:
11037               1|
11038               5[0-47-9]
11039             )
11040           </leadingDigits>
11041           <format>$1 $2 $3</format>
11042         </numberFormat>
11043         <numberFormat pattern="(2\d)(\d{4})(\d{4})">
11044           <leadingDigits>
11045             2(?:
11046               [16]|
11047               5[0-47-9]
11048             )
11049           </leadingDigits>
11050           <format>$1 $2 $3</format>
11051         </numberFormat>
11052         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
11053           <leadingDigits>
11054             [13-9]|
11055             2[02-57-9]
11056           </leadingDigits>
11057           <format>$1 $2 $3</format>
11058         </numberFormat>
11059         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
11060           <leadingDigits>
11061             [13-9]|
11062             2[02-57-9]
11063           </leadingDigits>
11064           <format>$1 $2 $3</format>
11065         </numberFormat>
11066         <numberFormat pattern="(\d{3})(\d{3})">
11067           <leadingDigits>
11068             [13-9]|
11069             2[02-57-9]
11070           </leadingDigits>
11071           <format>$1 $2</format>
11072         </numberFormat>
11073       </availableFormats>
11074       <generalDesc>
11075         <nationalNumberPattern>
11076           [14-8]\d{6,9}|
11077           [23]\d{4,9}|
11078           9(?:
11079             [1-4]\d{8}|
11080             9\d{2,8}
11081           )
11082         </nationalNumberPattern>
11083         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
11084       </generalDesc>
11085       <fixedLine>
11086         <!-- We are following the more specific lengths specified in the communication in the ITU
11087              doc of 26.VIII.2012, rather than the brief summary lengths (which actually contradict).
11088              The prefixes have been verified by looking at the Persian telecommunications site.
11089              22[189], 29[12] have become 21, as part of the shift to unify prefixes. 746 was also
11090              found on the website at http://www.tct.ir/?siteid=1&pageid=410&siteid=1 but this seems
11091              to be a typo. It seems Qom is moving to 025, but 0255 and 0256 have not yet been
11092              migrated away from under this prefix - in the meantime, support for 253 has been added
11093              since this has been found in numbers online. -->
11094         <nationalNumberPattern>
11095           1(?:
11096             [13-589][12]|
11097             [27][1-4]
11098           )\d{7}|
11099           2(?:
11100             1\d{3,8}|
11101             3[12]\d{7}|
11102             4(?:
11103               1\d{4,7}|
11104               2\d{7}
11105             )|
11106             5(?:
11107               1\d{3,7}|
11108               [2356]\d{7}
11109             )|
11110             6\d{8}|
11111             7[34]\d{7}|
11112             [89][12]\d{7}
11113           )|
11114           3(?:
11115             1(?:
11116               1\d{4,7}|
11117               2\d{7}
11118             )|
11119             2[1-4]\d{7}|
11120             3(?:
11121               [125]\d{7}|
11122               4\d{6,7}
11123             )|
11124             4(?:
11125               1\d{6,7}
11126               [24-9]\d{7}
11127             )|
11128             5(?:
11129               1\d{4,7}|
11130               [23]\d{7}
11131             )|
11132             [6-9][12]\d{7}
11133           )|
11134           4(?:
11135             [135-9][12]\d{7}|
11136             2[1-467]\d{7}|
11137             4(?:
11138               1\d{4,7}|
11139               [2-4]\d{7}
11140             )
11141           )|
11142           5(?:
11143             1(?:
11144               1\d{4,7}|
11145               2\d{7}
11146             )|
11147             2[89]\d{7}|
11148             3[1-5]\d{7}|
11149             4(?:
11150               1\d{4,7}|
11151               [2-8]\d{7}
11152             )|
11153             [5-7][12]\d{7}|
11154             8[1245]\d{7}
11155           )|
11156           6(?:
11157             1(?:
11158               1\d{6,7}|
11159               2\d{7}
11160             )|
11161             [347-9][12]\d{7}|
11162             5(?:
11163               1\d{7}|
11164               2\d{6,7}
11165             )|
11166             6[1-6]\d{7}
11167           )|
11168           7(?:
11169             [13589][12]|
11170             2[1289]|
11171             4[1-4]|
11172             6[1-6]|
11173             7[1-3]
11174           )\d{7}|
11175           8(?:
11176             [145][12]|
11177             3[124578]|
11178             6[1256]|
11179             7[1245]
11180           )\d{7}
11181         </nationalNumberPattern>
11182         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
11183         <exampleNumber>2123456789</exampleNumber>
11184       </fixedLine>
11185       <mobile>
11186         <nationalNumberPattern>9[1-3]\d{8}</nationalNumberPattern>
11187         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11188         <exampleNumber>9123456789</exampleNumber>
11189       </mobile>
11190       <pager>
11191         <nationalNumberPattern>943\d{7}</nationalNumberPattern>
11192         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11193         <exampleNumber>9432123456</exampleNumber>
11194       </pager>
11195       <!-- No tollFree or premiumRate information can be found. -->
11196       <voip>
11197         <!-- Includes VSAT and Boomehen Satellite numbers. -->
11198         <nationalNumberPattern>
11199           (?:
11200             [2-6]0\d|
11201             993
11202           )\d{7}
11203         </nationalNumberPattern>
11204         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11205         <exampleNumber>9932123456</exampleNumber>
11206       </voip>
11207       <uan>
11208         <!-- MCI Public Relations numbers -->
11209         <nationalNumberPattern>9990\d{0,6}</nationalNumberPattern>
11210         <exampleNumber>9990123456</exampleNumber>
11211       </uan>
11212       <emergency>
11213         <nationalNumberPattern>
11214           1(?:
11215             1[025]|
11216             25
11217           )
11218         </nationalNumberPattern>
11219         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11220         <exampleNumber>112</exampleNumber>
11221       </emergency>
11222     </territory>
11223
11224     <!-- Iceland -->
11225     <!-- http://www.pta.is/default.aspx?cat_id=85 -->
11226     <!-- http://www.pfs.is/default.aspx?cat_id=14&module_id=210&element_id=4 -->
11227     <territory id="IS" countryCode="354" internationalPrefix="00">
11228       <availableFormats>
11229         <numberFormat pattern="(\d{3})(\d{4})">
11230           <leadingDigits>[4-9]</leadingDigits>
11231           <format>$1 $2</format>
11232         </numberFormat>
11233         <numberFormat pattern="(3\d{2})(\d{3})(\d{3})">
11234           <leadingDigits>3</leadingDigits>
11235           <format>$1 $2 $3</format>
11236         </numberFormat>
11237       </availableFormats>
11238       <generalDesc>
11239         <nationalNumberPattern>
11240           [4-9]\d{6}|
11241           38\d{7}
11242         </nationalNumberPattern>
11243         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11244       </generalDesc>
11245       <fixedLine>
11246         <!-- Including 87[23] XXXX here as it is listed as a fax number. -->
11247         <nationalNumberPattern>
11248           (?:
11249             4(?:
11250               [14][0-245]|
11251               2[0-7]|
11252               [37][0-8]|
11253               5[0-3568]|
11254               6\d|
11255               8[0-36-8]
11256             )|
11257             5(?:
11258               05|
11259               [156]\d|
11260               2[02578]|
11261               3[013-7]|
11262               4[03-7]|
11263               7[0-2578]|
11264               8[0-35-9]|
11265               9[013-689]
11266             )|
11267             87[23]
11268           )\d{4}
11269         </nationalNumberPattern>
11270         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11271         <exampleNumber>4101234</exampleNumber>
11272       </fixedLine>
11273       <mobile>
11274         <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
11275         <nationalNumberPattern>
11276           38[59]\d{6}|
11277           (?:
11278             6(?:
11279               1[0-8]|
11280               3[0-27-9]|
11281               4[0-27]|
11282               5[0-29]|
11283               [67][0-69]|
11284               9\d
11285             )|
11286             7(?:
11287               5[057]|
11288               7\d|
11289               8[0-3]
11290             )|
11291             8(?:
11292               2[0-5]|
11293               [469]\d|
11294               5[1-9]
11295             )
11296           )\d{4}
11297         </nationalNumberPattern>
11298         <exampleNumber>6101234</exampleNumber>
11299       </mobile>
11300       <tollFree>
11301         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
11302         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11303         <exampleNumber>8001234</exampleNumber>
11304       </tollFree>
11305       <premiumRate>
11306         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
11307         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11308         <exampleNumber>9011234</exampleNumber>
11309       </premiumRate>
11310       <voip>
11311         <nationalNumberPattern>49[0-24-79]\d{4}</nationalNumberPattern>
11312         <possibleNumberPattern>\d{7}</possibleNumberPattern>
11313         <exampleNumber>4921234</exampleNumber>
11314       </voip>
11315       <voicemail>
11316         <nationalNumberPattern>
11317           388\d{6}|
11318           (?:
11319             6(?:
11320               2[0-8]|
11321               49|
11322               8\d
11323             )|
11324             8(?:
11325               2[6-9]|
11326               [38]\d|
11327               50|
11328               7[014-9]
11329             )|
11330             95[48]
11331           )\d{4}
11332         </nationalNumberPattern>
11333         <exampleNumber>388123456</exampleNumber>
11334       </voicemail>
11335       <emergency>
11336         <nationalNumberPattern>112</nationalNumberPattern>
11337         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11338         <exampleNumber>112</exampleNumber>
11339       </emergency>
11340     </territory>
11341
11342     <!-- Italy -->
11343     <!-- http://en.wikipedia.org/wiki/%2B39 -->
11344     <territory id="IT" countryCode="39" internationalPrefix="00" leadingZeroPossible="true">
11345       <availableFormats>
11346         <!-- The leading zero for fixed numbers will be prepended before the matching of these
11347              regular expressions. -->
11348         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
11349           <leadingDigits>
11350             0[26]|
11351             55
11352           </leadingDigits>
11353           <format>$1 $2 $3</format>
11354         </numberFormat>
11355         <numberFormat pattern="(0[26])(\d{4})(\d{5})">
11356           <leadingDigits>0[26]</leadingDigits>
11357           <format>$1 $2 $3</format>
11358         </numberFormat>
11359         <numberFormat pattern="(0[26])(\d{4,6})">
11360           <leadingDigits>0[26]</leadingDigits>
11361           <format>$1 $2</format>
11362         </numberFormat>
11363         <numberFormat pattern="(0\d{2})(\d{3,4})(\d{4})">
11364           <leadingDigits>0[13-57-9][0159]</leadingDigits>
11365           <format>$1 $2 $3</format>
11366         </numberFormat>
11367         <numberFormat pattern="(\d{3})(\d{3,6})">
11368           <leadingDigits>
11369             0[13-57-9][0159]|
11370             8(?:
11371               03|
11372               4[17]|
11373               9[245]
11374             )
11375           </leadingDigits>
11376           <leadingDigits>
11377             0[13-57-9][0159]|
11378             8(?:
11379               03|
11380               4[17]|
11381               9(?:
11382                 2|
11383                 [45][0-4]
11384               )
11385             )
11386           </leadingDigits>
11387           <format>$1 $2</format>
11388         </numberFormat>
11389         <numberFormat pattern="(0\d{3})(\d{3})(\d{4})">
11390           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11391           <format>$1 $2 $3</format>
11392         </numberFormat>
11393         <numberFormat pattern="(0\d{3})(\d{2,6})">
11394           <leadingDigits>0[13-57-9][2-46-8]</leadingDigits>
11395           <format>$1 $2</format>
11396         </numberFormat>
11397         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
11398           <leadingDigits>
11399             [13]|
11400             8(?:
11401               00|
11402               4[08]|
11403               9[59]
11404             )
11405           </leadingDigits>
11406           <leadingDigits>
11407             [13]|
11408             8(?:
11409               00|
11410               4[08]|
11411               9(?:
11412                 5[5-9]|
11413                 9
11414               )
11415             )
11416           </leadingDigits>
11417           <format>$1 $2 $3</format>
11418         </numberFormat>
11419         <numberFormat pattern="(\d{4})(\d{4})">
11420           <leadingDigits>894</leadingDigits>
11421           <leadingDigits>894[5-9]</leadingDigits>
11422           <format>$1 $2</format>
11423         </numberFormat>
11424         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
11425           <leadingDigits>3</leadingDigits>
11426           <format>$1 $2 $3</format>
11427         </numberFormat>
11428       </availableFormats>
11429       <generalDesc>
11430         <nationalNumberPattern>
11431           [01589]\d{5,10}|
11432           3(?:
11433             [12457-9]\d{8}|
11434             [36]\d{7,9}
11435           )
11436         </nationalNumberPattern>
11437         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11438       </generalDesc>
11439       <noInternationalDialling>
11440         <nationalNumberPattern>848\d{6}</nationalNumberPattern>
11441         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11442         <exampleNumber>848123456</exampleNumber>
11443       </noInternationalDialling>
11444       <fixedLine>
11445         <!-- Maximum lengths in the ITU document are 10, but it states above that for numbers
11446              starting with 01, the maximum length is in fact 11. In fact, online, numbers can be
11447              found with other prefixes that are 11 digits long as well, so we allow it for all the
11448              three and four digit area codes. -->
11449         <nationalNumberPattern>
11450           0(?:
11451             [26]\d{4,9}|
11452             (?:
11453               1(?:
11454                 [0159]\d|
11455                 [27][1-5]|
11456                 31|
11457                 4[1-4]|
11458                 6[1356]|
11459                 8[2-57]
11460               )|
11461               3(?:
11462                 [0159]\d|
11463                 2[1-4]|
11464                 3[12]|
11465                 [48][1-6]|
11466                 6[2-59]|
11467                 7[1-7]
11468               )|
11469               4(?:
11470                 [0159]\d|
11471                 [23][1-9]|
11472                 4[245]|
11473                 6[1-5]|
11474                 7[1-4]|
11475                 81
11476               )|
11477               5(?:
11478                 [0159]\d|
11479                 2[1-5]|
11480                 3[2-6]|
11481                 4[1-79]|
11482                 6[4-6]|
11483                 7[1-578]|
11484                 8[3-8]
11485               )|
11486               7(?:
11487                 [0159]\d|
11488                 2[12]|
11489                 3[1-7]|
11490                 4[2346]|
11491                 6[13569]|
11492                 7[13-6]|
11493                 8[1-59]
11494               )|
11495               8(?:
11496                 [0159]\d|
11497                 2[34578]|
11498                 3[1-356]|
11499                 [6-8][1-5]
11500               )|
11501               9(?:
11502                 [0159]\d|
11503                 [238][1-5]|
11504                 4[12]|
11505                 6[1-8]|
11506                 7[1-6]
11507               )
11508             )\d{2,7}
11509           )
11510         </nationalNumberPattern>
11511         <possibleNumberPattern>\d{6,11}</possibleNumberPattern>
11512         <exampleNumber>0212345678</exampleNumber>
11513       </fixedLine>
11514       <mobile>
11515         <!-- According to wikipedia, TIM mobile numbers can be 9 digits long, but all others are 10
11516              digits long. However, a user reported the existence of new 11 digit long numbers for
11517              TIM with the prefix 33X, so this is supported also. -->
11518         <nationalNumberPattern>
11519           3(?:
11520             [12457-9]\d{8}|
11521             6\d{7,8}|
11522             3\d{7,9}
11523           )
11524         </nationalNumberPattern>
11525         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
11526         <exampleNumber>3123456789</exampleNumber>
11527       </mobile>
11528       <tollFree>
11529         <nationalNumberPattern>
11530           80(?:
11531             0\d{6}|
11532             3\d{3}
11533           )
11534         </nationalNumberPattern>
11535         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11536         <exampleNumber>800123456</exampleNumber>
11537       </tollFree>
11538       <premiumRate>
11539         <!-- Adding 0878 numbers, as per
11540              http://www.aduc.it/notizia/polizia+mette+allerta+sul+numero+0878_73136.php. Other
11541              premium prefixes are mentioned here:
11542              http://www.dirittodellinformatica.it/news/telefonia/agcom-blocco-permanente-prefissi-144-166-892-899-20080520241.html -->
11543         <nationalNumberPattern>
11544           0878\d{5}|
11545           1(?:
11546             44|
11547             6[346]
11548           )\d{6}|
11549           89(?:
11550             2\d{3}|
11551             4(?:
11552               [0-4]\d{2}|
11553               [5-9]\d{4}
11554             )|
11555             5(?:
11556               [0-4]\d{2}|
11557               [5-9]\d{6}
11558             )|
11559             9\d{6}
11560           )
11561         </nationalNumberPattern>
11562         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11563         <exampleNumber>899123456</exampleNumber>
11564       </premiumRate>
11565       <sharedCost>
11566         <nationalNumberPattern>
11567           84(?:
11568             [08]\d{6}|
11569             [17]\d{3}
11570           )
11571         </nationalNumberPattern>
11572         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
11573         <exampleNumber>848123456</exampleNumber>
11574       </sharedCost>
11575       <personalNumber>
11576         <nationalNumberPattern>
11577           1(?:
11578             78\d|
11579             99
11580           )\d{6}
11581         </nationalNumberPattern>
11582         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
11583         <exampleNumber>1781234567</exampleNumber>
11584       </personalNumber>
11585       <voip>
11586         <nationalNumberPattern>55\d{8}</nationalNumberPattern>
11587         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11588         <exampleNumber>5512345678</exampleNumber>
11589       </voip>
11590       <emergency>
11591         <nationalNumberPattern>11[2358]</nationalNumberPattern>
11592         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11593         <exampleNumber>112</exampleNumber>
11594       </emergency>
11595     </territory>
11596
11597     <!-- Jersey -->
11598     <!-- Inherits formatting rules from the UK. -->
11599     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom -->
11600     <!-- http://www.jcra.je/cms3/v2/public/cmsChild.asp?pageID=1024&childID=1036 -->
11601     <territory id="JE" countryCode="44" internationalPrefix="00"
11602                nationalPrefix="0" preferredExtnPrefix=" x" nationalPrefixFormattingRule="$NP$FG">
11603       <generalDesc>
11604         <nationalNumberPattern>[135789]\d{6,9}</nationalNumberPattern>
11605         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
11606       </generalDesc>
11607       <areaCodeOptional>
11608         <nationalNumberPattern>1534[2-9]\d{5}</nationalNumberPattern>
11609         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11610         <exampleNumber>1534250123</exampleNumber>
11611       </areaCodeOptional>
11612       <!-- Specific to JE. -->
11613       <fixedLine>
11614         <!-- 1534 with 10 digits. -->
11615         <nationalNumberPattern>1534\d{6}</nationalNumberPattern>
11616         <exampleNumber>1534456789</exampleNumber>
11617       </fixedLine>
11618       <mobile>
11619         <!-- 7509, 7700, 7797, 7829, 7937 with 10 digits. -->
11620         <nationalNumberPattern>
11621           7(?:
11622             509|
11623             7(?:
11624               00|
11625               97
11626             )|
11627             829|
11628             937
11629           )\d{6}
11630         </nationalNumberPattern>
11631         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11632         <exampleNumber>7797123456</exampleNumber>
11633       </mobile>
11634       <pager>
11635         <!-- Pager numbers as per GB. -->
11636         <nationalNumberPattern>
11637           76(?:
11638             0[012]|
11639             2[356]|
11640             4[0134]|
11641             5[49]|
11642             6[0-369]|
11643             77|
11644             81|
11645             9[39]
11646           )\d{6}
11647         </nationalNumberPattern>
11648         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11649         <exampleNumber>7640123456</exampleNumber>
11650       </pager>
11651       <!-- Specific to JE. -->
11652       <tollFree>
11653         <!-- 800 735, 800 781, 808 901 with 10 digits. -->
11654         <nationalNumberPattern>
11655           80(?:
11656             07(?:
11657               35|
11658               81
11659             )|
11660             8901
11661           )\d{4}
11662         </nationalNumberPattern>
11663         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11664         <exampleNumber>8007354567</exampleNumber>
11665       </tollFree>
11666       <premiumRate>
11667         <!-- 871 206, 900 665, 900 669, 901 810, 907 107, 907 155 with 10 digits. -->
11668         <nationalNumberPattern>
11669           (?:
11670             871206|
11671             90(?:
11672               066[59]|
11673               1810|
11674               71(?:
11675                 07|
11676                 55
11677               )
11678             )
11679           )\d{4}
11680         </nationalNumberPattern>
11681         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11682         <exampleNumber>9018105678</exampleNumber>
11683       </premiumRate>
11684       <sharedCost>
11685         <!-- 844 405, 844 442, 844 469, 844 703, 845 041, 845 800, 870 002 with 10 digits. -->
11686         <nationalNumberPattern>
11687           8(?:
11688             4(?:
11689               4(?:
11690                 4(?:
11691                   05|
11692                   42|
11693                   69
11694                 )|
11695                 703
11696               )|
11697               5(?:
11698                 041|
11699                 800
11700               )
11701             )|
11702             70002
11703           )\d{4}
11704         </nationalNumberPattern>
11705         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11706         <exampleNumber>8447034567</exampleNumber>
11707       </sharedCost>
11708       <personalNumber>
11709         <!-- 70 1511 with 10 digits. -->
11710         <nationalNumberPattern>701511\d{4}</nationalNumberPattern>
11711         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11712         <exampleNumber>7015115678</exampleNumber>
11713       </personalNumber>
11714       <voip>
11715         <!-- VoIP numbers as per GB. -->
11716         <nationalNumberPattern>56\d{8}</nationalNumberPattern>
11717         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11718         <exampleNumber>5612345678</exampleNumber>
11719       </voip>
11720       <uan>
11721         <!-- 300 735, 300 781, 308 901, 33d, 344 405, 344 442, 344 469, 344 703, 345 041, 345 800,
11722              370 002, 371 206, 55 with 10 digits. -->
11723         <nationalNumberPattern>
11724           3(?:
11725             0(?:
11726               07(?:
11727                 35|
11728                 81
11729               )|
11730               8901
11731             )|
11732             3\d{4}|
11733             4(?:
11734               4(?:
11735                 4(?:
11736                   05|
11737                   42|
11738                   69
11739                 )|
11740                 703
11741               )|
11742               5(?:
11743                 041|
11744                 800
11745               )
11746             )|
11747             7(?:
11748               0002|
11749               1206
11750             )
11751           )\d{4}|
11752           55\d{8}
11753         </nationalNumberPattern>
11754         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11755         <exampleNumber>5512345678</exampleNumber>
11756       </uan>
11757       <emergency>
11758         <!-- http://en.wikipedia.org/wiki/Jersey#Emergency_services -->
11759         <nationalNumberPattern>
11760           112|
11761           999
11762         </nationalNumberPattern>
11763         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11764         <exampleNumber>999</exampleNumber>
11765       </emergency>
11766     </territory>
11767
11768     <!-- Jamaica -->
11769     <!-- http://www.itu.int/oth/T020200006C/en -->
11770     <territory id="JM" countryCode="1" leadingDigits="876" nationalPrefix="1"
11771                internationalPrefix="011">
11772       <generalDesc>
11773         <!-- NANPA country - uses US formatting rules -->
11774         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
11775         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
11776       </generalDesc>
11777       <fixedLine>
11778         <!-- Numbers have been found online for ranges 62x,63x, 656, 66[2-589]. -->
11779         <nationalNumberPattern>
11780           876(?:
11781             5(?:
11782               0[12]|
11783               1[0-468]|
11784               2[35]|
11785               63
11786             )|
11787             6(?:
11788               0[1-3579]|
11789               1[027-9]|
11790               [23]\d|
11791               40|
11792               5[06]|
11793               6[2-589]|
11794               7[05]|
11795               8[04]|
11796               9[4-9]
11797             )|
11798             7(?:
11799               0[2-689]|
11800               [1-6]\d|
11801               8[056]|
11802               9[45]
11803             )|
11804             9(?:
11805               0[1-8]|
11806               1[02378]|
11807               [2-8]\d|
11808               9[2-468]
11809             )
11810           )\d{4}
11811         </nationalNumberPattern>
11812         <exampleNumber>8765123456</exampleNumber>
11813       </fixedLine>
11814       <mobile>
11815         <!-- Adding 27, 28, 299, 31, 508, 527 and 566 as extra prefixes, as they have been found to
11816              be valid by sending SMSs and looking at online number lookup sites.
11817
11818              Numbers have been found online for the following ranges 29x, 53x, 54x, 55x, 56x.
11819              Most have mobile numbers online so we have put them under mobile but is possible
11820              they are a mixture of fixed line and mobile. -->
11821         <nationalNumberPattern>
11822           876(?:
11823             2[1789]\d|
11824             [348]\d{2}|
11825             5(?:
11826               08|
11827               27|
11828               6[0-24-9]|
11829               [3-578]\d
11830             )|
11831             7(?:
11832               0[07]|
11833               7\d|
11834               8[1-47-9]|
11835               9[0-36-9]
11836             )|
11837             9(?:
11838               [01]9|
11839               9[0579]
11840             )
11841           )\d{4}
11842         </nationalNumberPattern>
11843         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11844         <exampleNumber>8762101234</exampleNumber>
11845       </mobile>
11846       <tollFree>
11847         <nationalNumberPattern>
11848           8(?:
11849             00|
11850             55|
11851             66|
11852             77|
11853             88
11854           )[2-9]\d{6}
11855         </nationalNumberPattern>
11856         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11857         <exampleNumber>8002123456</exampleNumber>
11858       </tollFree>
11859       <premiumRate>
11860         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
11861         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11862         <exampleNumber>9002123456</exampleNumber>
11863       </premiumRate>
11864       <personalNumber>
11865         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
11866         <nationalNumberPattern>
11867           5(?:
11868             00|
11869             33|
11870             44
11871           )[2-9]\d{6}
11872         </nationalNumberPattern>
11873         <possibleNumberPattern>\d{10}</possibleNumberPattern>
11874         <exampleNumber>5002345678</exampleNumber>
11875       </personalNumber>
11876       <emergency>
11877         <nationalNumberPattern>11[09]</nationalNumberPattern>
11878         <possibleNumberPattern>\d{3}</possibleNumberPattern>
11879         <exampleNumber>119</exampleNumber>
11880       </emergency>
11881     </territory>
11882
11883     <!-- Jordan -->
11884     <!-- http://www.trc.gov.jo/images/stories/pdf/NNP_ver200[1].pdf?lang=english -->
11885     <!-- http://www.itu.int/oth/T020200006E/en -->
11886     <!-- http://en.wikipedia.org/wiki/%2B962 -->
11887     <territory id="JO" countryCode="962" internationalPrefix="00"
11888                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
11889       <availableFormats>
11890         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
11891           pattern="(\d)(\d{3})(\d{4})">
11892           <leadingDigits>
11893             [2356]|
11894             87
11895           </leadingDigits>
11896           <format>$1 $2 $3</format>
11897         </numberFormat>
11898         <numberFormat pattern="(7)(\d{4})(\d{4})">
11899           <leadingDigits>7[457-9]</leadingDigits>
11900           <format>$1 $2 $3</format>
11901         </numberFormat>
11902         <numberFormat pattern="(\d{3})(\d{5,6})">
11903           <leadingDigits>
11904             70|
11905             8[0158]|
11906             9
11907           </leadingDigits>
11908           <format>$1 $2</format>
11909         </numberFormat>
11910       </availableFormats>
11911       <generalDesc>
11912         <nationalNumberPattern>[235-9]\d{7,8}</nationalNumberPattern>
11913         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
11914       </generalDesc>
11915       <fixedLine>
11916         <nationalNumberPattern>
11917           (?:
11918             2(?:
11919               6(?:
11920                 2[0-35-9]|
11921                 3[0-57-8]|
11922                 4[24-7]|
11923                 5[0-24-8]|
11924                 [6-9][02]
11925               )|
11926               7(?:
11927                 0[1-79]|
11928                 10|
11929                 2[014-7]|
11930                 3[0-689]|
11931                 4[019]|
11932                 5[0-3578]
11933               )
11934             )|
11935             32(?:
11936               0[1-69]|
11937               1[1-35-7]|
11938               2[024-7]|
11939               3\d|
11940               [457][02]|
11941               60
11942             )|
11943             53(?:
11944               [013][02]|
11945               2[0-59]|
11946               49|
11947               5[0-35-9]|
11948               6[15]|
11949               7[45]|
11950               8[1-6]|
11951               9[0-36-9]
11952             )|
11953             6(?:
11954               2[50]0|
11955               300|
11956               4(?:
11957                 0[0125]|
11958                 1[2-7]|
11959                 2[0569]|
11960                 [38][07-9]|
11961                 4[025689]|
11962                 6[0-589]|
11963                 7\d|
11964                 9[0-2]
11965               )|
11966               5(?:
11967                 [01][056]|
11968                 2[034]|
11969                 3[0-57-9]|
11970                 4[17-8]|
11971                 5[0-69]|
11972                 6[0-35-9]|
11973                 7[1-379]|
11974                 8[0-68]|
11975                 9[02-39]
11976               )
11977             )|
11978             87(?:
11979               [02]0|
11980               7[08]|
11981               9[09]
11982             )
11983           )\d{4}
11984         </nationalNumberPattern>
11985         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
11986         <exampleNumber>62001234</exampleNumber>
11987       </fixedLine>
11988       <mobile>
11989         <nationalNumberPattern>
11990           7(?:
11991             55|
11992             7[25-9]|
11993             8[5-9]|
11994             9[05-9]
11995           )\d{6}
11996         </nationalNumberPattern>
11997         <possibleNumberPattern>\d{9}</possibleNumberPattern>
11998         <exampleNumber>790123456</exampleNumber>
11999       </mobile>
12000       <pager>
12001         <nationalNumberPattern>
12002           74(?:
12003             66|
12004             77
12005           )\d{5}
12006         </nationalNumberPattern>
12007         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12008         <exampleNumber>746612345</exampleNumber>
12009       </pager>
12010       <tollFree>
12011         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
12012         <possibleNumberPattern>\d{8}</possibleNumberPattern>
12013         <exampleNumber>80012345</exampleNumber>
12014       </tollFree>
12015       <premiumRate>
12016         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
12017         <possibleNumberPattern>\d{8}</possibleNumberPattern>
12018         <exampleNumber>90012345</exampleNumber>
12019       </premiumRate>
12020       <sharedCost>
12021         <nationalNumberPattern>85\d{6}</nationalNumberPattern>
12022         <possibleNumberPattern>\d{8}</possibleNumberPattern>
12023         <exampleNumber>85012345</exampleNumber>
12024       </sharedCost>
12025       <personalNumber>
12026         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
12027         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12028         <exampleNumber>700123456</exampleNumber>
12029       </personalNumber>
12030       <uan>
12031         <!-- These numbers are Location Independent Services / Fixed cost according to
12032              http://www.trc.gov.jo -->
12033         <nationalNumberPattern>
12034           8(?:
12035             10|
12036             8\d
12037           )\d{5}
12038         </nationalNumberPattern>
12039         <possibleNumberPattern>\d{8}</possibleNumberPattern>
12040         <exampleNumber>88101234</exampleNumber>
12041       </uan>
12042       <emergency>
12043         <nationalNumberPattern>
12044           1(?:
12045             12|
12046             91
12047           )|
12048           911
12049         </nationalNumberPattern>
12050         <possibleNumberPattern>\d{3}</possibleNumberPattern>
12051         <exampleNumber>112</exampleNumber>
12052       </emergency>
12053     </territory>
12054
12055     <!-- Japan -->
12056     <!-- http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html -->
12057     <!-- http://www.numberingplans.com/?page=dialling&sub=areacodes&ac=JP -->
12058     <territory id="JP" countryCode="81" internationalPrefix="010" nationalPrefix="0"
12059                nationalPrefixFormattingRule="$NP$FG" leadingZeroPossible="true" >
12060       <availableFormats>
12061         <!-- Toll-free, premium-rate and UAN numbers -->
12062         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
12063           <leadingDigits>
12064             (?:
12065               12|
12066               57|
12067               99
12068             )0
12069           </leadingDigits>
12070           <format>$1-$2-$3</format>
12071         </numberFormat>
12072         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
12073           <leadingDigits>800</leadingDigits>
12074           <format>$1-$2-$3</format>
12075         </numberFormat>
12076         <!-- National-only toll-free numbers (0077 and 0088) and VOIP numbers (0037) where the
12077              leading "0" is considered the national prefix. -->
12078         <numberFormat pattern="(\d{3})(\d{4})">
12079           <leadingDigits>077</leadingDigits>
12080           <format>$1-$2</format>
12081         </numberFormat>
12082         <numberFormat pattern="(\d{3})(\d{2})(\d{3,4})">
12083           <leadingDigits>077</leadingDigits>
12084           <format>$1-$2-$3</format>
12085         </numberFormat>
12086         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12087           <leadingDigits>088</leadingDigits>
12088           <format>$1-$2-$3</format>
12089         </numberFormat>
12090         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
12091           <leadingDigits>
12092             0(?:
12093               37|
12094               66
12095             )
12096           </leadingDigits>
12097           <format>$1-$2-$3</format>
12098         </numberFormat>
12099         <numberFormat pattern="(\d{3})(\d{4})(\d{4,5})">
12100           <leadingDigits>
12101             0(?:
12102               37|
12103               66
12104             )
12105           </leadingDigits>
12106           <format>$1-$2-$3</format>
12107         </numberFormat>
12108         <numberFormat pattern="(\d{3})(\d{5})(\d{5,6})">
12109           <leadingDigits>
12110             0(?:
12111               37|
12112               66
12113             )
12114           </leadingDigits>
12115           <format>$1-$2-$3</format>
12116         </numberFormat>
12117         <numberFormat pattern="(\d{3})(\d{6})(\d{6,7})">
12118           <leadingDigits>
12119             0(?:
12120               37|
12121               66
12122             )
12123           </leadingDigits>
12124           <format>$1-$2-$3</format>
12125         </numberFormat>
12126         <!-- Some leading digits are explicitly reserved for a particular purpose.
12127              We handle them first in this rule, and let the following rules ignore those exceptions.
12128              Note: The rule here is not in the files we rely on when creating the other rules.
12129                    We would need to manually modify it if the Japanese goverment
12130                    decided to change the rule.
12131
12132              (prefix): purpose
12133              "20": Pagers
12134              "50": IP phone
12135              "70": PHS (Personal Handy-phone System, which has been used in Japan
12136                    with Non-3G, Japanese-specific protocol).
12137                    See also http://ja.wikipedia.org/wiki/PHS (Japanese)
12138              "80" and "90": Mobile phone
12139           -->
12140         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
12141           <leadingDigits>
12142             [2579]0|
12143             80[1-9]
12144           </leadingDigits>
12145           <format>$1-$2-$3</format>
12146         </numberFormat>
12147         <!-- The order of the reg-exps are important.
12148              Examples (not all):
12149              - "15": 15420 -> 154-20, 15472 -> 1547-2, 15410 -> 15-410,
12150              - "22": 22200 -> 22-200, 22300 -> 22-300, 22320 -> 223-20, 22350 -> 22-350
12151              - "42": 42000 -> 4-2000, 42901 -> 4-2901, 42910 -> 42-910
12152              - "82": 82200 -> 82-200, 82020 -> 820-20, 82400 -> 82-400
12153              - "99": 99400 -> 99-400, 99430 -> 994-30, 99692 -> 9969-2, 99750 -> 997-50
12154              - "993": 99330 -> 993-30, 99331 -> 99-331, 99332 -> 993-32
12155           -->
12156         <numberFormat pattern="(\d{4})(\d)(\d{4})">
12157           <leadingDigits>
12158             1(?:
12159               26|
12160               3[79]|
12161               4[56]|
12162               5[4-68]|
12163               6[3-5]
12164             )|
12165             5(?:
12166               76|
12167               97
12168             )|
12169             499|
12170             746|
12171             8(?:
12172               3[89]|
12173               63|
12174               47|
12175               51
12176             )|
12177             9(?:
12178               49|
12179               80|
12180               9[16]
12181             )
12182           </leadingDigits>
12183           <leadingDigits>
12184             1(?:
12185               267|
12186               3(?:
12187                 7[247]|
12188                 9[278]
12189               )|
12190               4(?:
12191                 5[67]|
12192                 66
12193               )|
12194               5(?:
12195                 47|
12196                 58|
12197                 64|
12198                 8[67]
12199               )|
12200               6(?:
12201                 3[245]|
12202                 48|
12203                 5[4-68]
12204               )
12205             )|
12206             5(?:
12207               76|
12208               97
12209             )9|
12210             499[2468]|
12211             7468|
12212             8(?:
12213               3(?:
12214                 8[78]|
12215                 96
12216               )|
12217               636|
12218               477|
12219               51[24]
12220             )|
12221             9(?:
12222               496|
12223               802|
12224               9(?:
12225                 1[23]|
12226                 69
12227               )
12228             )
12229           </leadingDigits>
12230           <leadingDigits>
12231             1(?:
12232               267|
12233               3(?:
12234                 7[247]|
12235                 9[278]
12236               )|
12237               4(?:
12238                 5[67]|
12239                 66
12240               )|
12241               5(?:
12242                 47|
12243                 58|
12244                 64|
12245                 8[67]
12246               )|
12247               6(?:
12248                 3[245]|
12249                 48|
12250                 5[4-68]
12251               )
12252             )|
12253             5(?:
12254               769|
12255               979[2-69]
12256             )|
12257             499[2468]|
12258             7468|
12259             8(?:
12260               3(?:
12261                 8[78]|
12262                 96[2457-9]
12263               )|
12264               636[2-57-9]|
12265               477|
12266               51[24]
12267             )|
12268             9(?:
12269               496|
12270               802|
12271               9(?:
12272                 1[23]|
12273                 69
12274               )
12275             )
12276           </leadingDigits>
12277           <format>$1-$2-$3</format>
12278         </numberFormat>
12279         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12280           <leadingDigits>
12281             1(?:
12282               2[3-6]|
12283               3[3-9]|
12284               4[2-6]|
12285               5[2-8]|
12286               [68][2-7]|
12287               7[2-689]|
12288               9[1-578]
12289             )|
12290             2(?:
12291               2[03-689]|
12292               3[3-58]|
12293               4[0-468]|
12294               5[04-8]|
12295               6[013-8]|
12296               7[06-9]|
12297               8[02-57-9]|
12298               9[13]
12299             )|
12300             4(?:
12301               2[28]|
12302               3[689]|
12303               6[035-7]|
12304               7[05689]|
12305               80|
12306               9[3-5]
12307             )|
12308             5(?:
12309               3[1-36-9]|
12310               4[4578]|
12311               5[013-8]|
12312               6[1-9]|
12313               7[2-8]|
12314               8[14-7]|
12315               9[4-9]
12316             )|
12317             7(?:
12318               2[15]|
12319               3[5-9]|
12320               4[02-9]|
12321               6[135-8]|
12322               7[0-4689]|
12323               9[014-9]
12324             )|
12325             8(?:
12326               2[49]|
12327               3[3-8]|
12328               4[5-8]|
12329               5[2-9]|
12330               6[35-9]|
12331               7[579]|
12332               8[03-579]|
12333               9[2-8]
12334             )|
12335             9(?:
12336               [23]0|
12337               4[02-46-9]|
12338               5[024-79]|
12339               6[4-9]|
12340               7[2-47-9]|
12341               8[02-7]|
12342               9[3-7]
12343             )
12344           </leadingDigits>
12345           <leadingDigits>
12346             1(?:
12347               2[3-6]|
12348               3[3-9]|
12349               4[2-6]|
12350               5(?:
12351                 [236-8]|
12352                 [45][2-69]
12353               )|
12354               [68][2-7]|
12355               7[2-689]|
12356               9[1-578]
12357             )|
12358             2(?:
12359               2(?:
12360                 [04-689]|
12361                 3[23]
12362               )|
12363               3[3-58]|
12364               4[0-468]|
12365               5(?:
12366                 5[78]|
12367                 7[2-4]|
12368                 [0468][2-9]
12369               )|
12370               6(?:
12371                 [0135-8]|
12372                 4[2-5]
12373               )|
12374               7(?:
12375                 [0679]|
12376                 8[2-7]
12377               )|
12378               8(?:
12379                 [024578]|
12380                 3[25-9]|
12381                 9[6-9]
12382               )|
12383               9(?:
12384                 11|
12385                 3[2-4]
12386               )
12387             )|
12388             4(?:
12389               2(?:
12390                 2[2-9]|
12391                 8[237-9]
12392               )|
12393               3[689]|
12394               6[035-7]|
12395               7(?:
12396                 [059][2-8]|
12397                 [68]
12398               )|
12399               80|
12400               9[3-5]
12401             )|
12402             5(?:
12403               3[1-36-9]|
12404               4[4578]|
12405               5[013-8]|
12406               6[1-9]|
12407               7[2-8]|
12408               8[14-7]|
12409               9(?:
12410                 [89][2-8]|
12411                 [4-7]
12412               )
12413             )|
12414             7(?:
12415               2[15]|
12416               3[5-9]|
12417               4[02-9]|
12418               6[135-8]|
12419               7[0-4689]|
12420               9(?:
12421                 [017-9]|
12422                 4[6-8]|
12423                 5[2-478]|
12424                 6[2-589]
12425               )
12426             )|
12427             8(?:
12428               2(?:
12429                 4[4-8]|
12430                 9[2-8]
12431               )|
12432               3(?:
12433                 7[2-6]|
12434                 [3-6][2-9]|
12435                 8[2-5]
12436               )|
12437               4[5-8]|
12438               5[2-9]|
12439               6(?:
12440                 [37]|
12441                 5[4-7]|
12442                 6[2-9]|
12443                 8[2-8]|
12444                 9[236-9]
12445               )|
12446               7[579]|
12447               8[03-579]|
12448               9[2-8]
12449             )|
12450             9(?:
12451               [23]0|
12452               4[02-46-9]|
12453               5[024-79]|
12454               6[4-9]|
12455               7[2-47-9]|
12456               8[02-7]|
12457               9(?:
12458                 3[34]|
12459                 [4-7]
12460               )
12461             )
12462           </leadingDigits>
12463           <leadingDigits>
12464             1(?:
12465               2[3-6]|
12466               3[3-9]|
12467               4[2-6]|
12468               5(?:
12469                 [236-8]|
12470                 [45][2-69]
12471               )|
12472               [68][2-7]|
12473               7[2-689]|
12474               9[1-578]
12475             )|
12476             2(?:
12477               2(?:
12478                 [04-689]|
12479                 3[23]
12480               )|
12481               3[3-58]|
12482               4[0-468]|
12483               5(?:
12484                 5[78]|
12485                 7[2-4]|
12486                 [0468][2-9]
12487               )|
12488               6(?:
12489                 [0135-8]|
12490                 4[2-5]
12491               )|
12492               7(?:
12493                 [0679]|
12494                 8[2-7]
12495               )|
12496               8(?:
12497                 [024578]|
12498                 3[25-9]|
12499                 9[6-9]
12500               )|
12501               9(?:
12502                 11|
12503                 3[2-4]
12504               )
12505             )|
12506             4(?:
12507               2(?:
12508                 2[2-9]|
12509                 8[237-9]
12510               )|
12511               3[689]|
12512               6[035-7]|
12513               7(?:
12514                 [059][2-8]|
12515                 [68]
12516               )|
12517               80|
12518               9[3-5]
12519             )|
12520             5(?:
12521               3[1-36-9]|
12522               4[4578]|
12523               5[013-8]|
12524               6[1-9]|
12525               7[2-8]|
12526               8[14-7]|
12527               9(?:
12528                 [89][2-8]|
12529                 [4-7]
12530               )
12531             )|
12532             7(?:
12533               2[15]|
12534               3[5-9]|
12535               4[02-9]|
12536               6[135-8]|
12537               7[0-4689]|
12538               9(?:
12539                 [017-9]|
12540                 4[6-8]|
12541                 5[2-478]|
12542                 6[2-589]
12543               )
12544             )|
12545             8(?:
12546               2(?:
12547                 4[4-8]|
12548                 9(?:
12549                   [3578]|
12550                   20|
12551                   4[04-9]|
12552                   6[56]
12553                 )
12554               )|
12555               3(?:
12556                 7(?:
12557                   [2-5]|
12558                   6[0-59]
12559                 )|
12560                 [3-6][2-9]|
12561                 8[2-5]
12562               )|
12563               4[5-8]|
12564               5[2-9]|
12565               6(?:
12566                 [37]|
12567                 5(?:
12568                   [467]|
12569                   5[014-9]
12570                 )|
12571                 6(?:
12572                   [2-8]|
12573                   9[02-69]
12574                 )|
12575                 8[2-8]|
12576                 9(?:
12577                   [236-8]|
12578                   9[23]
12579                 )
12580               )|
12581               7[579]|
12582               8[03-579]|
12583               9[2-8]
12584             )|
12585             9(?:
12586               [23]0|
12587               4[02-46-9]|
12588               5[024-79]|
12589               6[4-9]|
12590               7[2-47-9]|
12591               8[02-7]|
12592               9(?:
12593                 3(?:
12594                   3[02-9]|
12595                   4[0-24689]
12596                 )|
12597                 4[2-69]|
12598                 [5-7]
12599               )
12600             )
12601           </leadingDigits>
12602           <leadingDigits>
12603             1(?:
12604               2[3-6]|
12605               3[3-9]|
12606               4[2-6]|
12607               5(?:
12608                 [236-8]|
12609                 [45][2-69]
12610               )|
12611               [68][2-7]|
12612               7[2-689]|
12613               9[1-578]
12614             )|
12615             2(?:
12616               2(?:
12617                 [04-689]|
12618                 3[23]
12619               )|
12620               3[3-58]|
12621               4[0-468]|
12622               5(?:
12623                 5[78]|
12624                 7[2-4]|
12625                 [0468][2-9]
12626               )|
12627               6(?:
12628                 [0135-8]|
12629                 4[2-5]
12630               )|
12631               7(?:
12632                 [0679]|
12633                 8[2-7]
12634               )|
12635               8(?:
12636                 [024578]|
12637                 3[25-9]|
12638                 9[6-9]
12639               )|
12640               9(?:
12641                 11|
12642                 3[2-4]
12643               )
12644             )|
12645             4(?:
12646               2(?:
12647                 2[2-9]|
12648                 8[237-9]
12649               )|
12650               3[689]|
12651               6[035-7]|
12652               7(?:
12653                 [059][2-8]|
12654                 [68]
12655               )|
12656               80|
12657               9[3-5]
12658             )|
12659             5(?:
12660               3[1-36-9]|
12661               4[4578]|
12662               5[013-8]|
12663               6[1-9]|
12664               7[2-8]|
12665               8[14-7]|
12666               9(?:
12667                 [89][2-8]|
12668                 [4-7]
12669               )
12670             )|
12671             7(?:
12672               2[15]|
12673               3[5-9]|
12674               4[02-9]|
12675               6[135-8]|
12676               7[0-4689]|
12677               9(?:
12678                 [017-9]|
12679                 4[6-8]|
12680                 5[2-478]|
12681                 6[2-589]
12682               )
12683             )|
12684             8(?:
12685               2(?:
12686                 4[4-8]|
12687                 9(?:
12688                   [3578]|
12689                   20|
12690                   4[04-9]|
12691                   6(?:
12692                     5[25]|
12693                     60
12694                   )
12695                 )
12696               )|
12697               3(?:
12698                 7(?:
12699                   [2-5]|
12700                   6[0-59]
12701                 )|
12702                 [3-6][2-9]|
12703                 8[2-5]
12704               )|
12705               4[5-8]|
12706               5[2-9]|
12707               6(?:
12708                 [37]|
12709                 5(?:
12710                   [467]|
12711                   5[014-9]
12712                 )|
12713                 6(?:
12714                   [2-8]|
12715                   9[02-69]
12716                 )|
12717                 8[2-8]|
12718                 9(?:
12719                   [236-8]|
12720                   9[23]
12721                 )
12722               )|
12723               7[579]|
12724               8[03-579]|
12725               9[2-8]
12726             )|
12727             9(?:
12728               [23]0|
12729               4[02-46-9]|
12730               5[024-79]|
12731               6[4-9]|
12732               7[2-47-9]|
12733               8[02-7]|
12734               9(?:
12735                 3(?:
12736                   3[02-9]|
12737                   4[0-24689]
12738                 )|
12739                 4[2-69]|
12740                 [5-7]
12741               )
12742             )
12743           </leadingDigits>
12744           <format>$1-$2-$3</format>
12745         </numberFormat>
12746         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12747           <leadingDigits>
12748             1|
12749             2(?:
12750               2[37]|
12751               5[5-9]|
12752               64|
12753               78|
12754               8[39]|
12755               91
12756             )|
12757             4(?:
12758               2[2689]|
12759               64|
12760               7[347]
12761             )|
12762             5(?:
12763               [2-589]|
12764               39
12765             )|
12766             60|
12767             8(?:
12768               [46-9]|
12769               3[279]|
12770               2[124589]
12771             )|
12772             9(?:
12773               [235-8]|
12774               93
12775             )
12776           </leadingDigits>
12777           <leadingDigits>
12778             1|
12779             2(?:
12780               2[37]|
12781               5(?:
12782                 [57]|
12783                 [68]0|
12784                 9[19]
12785               )|
12786               64|
12787               78|
12788               8[39]|
12789               917
12790             )|
12791             4(?:
12792               2(?:
12793                 [68]|
12794                 20|
12795                 9[178]
12796               )|
12797               64|
12798               7[347]
12799             )|
12800             5(?:
12801               [2-589]|
12802               39[67]
12803             )|
12804             60|
12805             8(?:
12806               [46-9]|
12807               3[279]|
12808               2[124589]
12809             )|
12810             9(?:
12811               [235-8]|
12812               93[34]
12813             )
12814           </leadingDigits>
12815           <leadingDigits>
12816             1|
12817             2(?:
12818               2[37]|
12819               5(?:
12820                 [57]|
12821                 [68]0|
12822                 9(?:
12823                   17|
12824                   99
12825                 )
12826               )|
12827               64|
12828               78|
12829               8[39]|
12830               917
12831             )|
12832             4(?:
12833               2(?:
12834                 [68]|
12835                 20|
12836                 9[178]
12837               )|
12838               64|
12839               7[347]
12840             )|
12841             5(?:
12842               [2-589]|
12843               39[67]
12844             )|
12845             60|
12846             8(?:
12847               [46-9]|
12848               3[279]|
12849               2[124589]
12850             )|
12851             9(?:
12852               [235-8]|
12853               93(?:
12854                 31|
12855                 4
12856               )
12857             )
12858           </leadingDigits>
12859           <format>$1-$2-$3</format>
12860         </numberFormat>
12861         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
12862           <leadingDigits>
12863             2(?:
12864               9[14-79]|
12865               74|
12866               [34]7|
12867               [56]9
12868             )|
12869             82|
12870             993
12871           </leadingDigits>
12872           <format>$1-$2-$3</format>
12873         </numberFormat>
12874         <numberFormat pattern="(\d)(\d{4})(\d{4})">
12875           <leadingDigits>
12876             3|
12877             4(?:
12878               2[09]|
12879               7[01]
12880             )|
12881             6[1-9]
12882           </leadingDigits>
12883           <format>$1-$2-$3</format>
12884         </numberFormat>
12885         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
12886           <leadingDigits>[2479][1-9]</leadingDigits>
12887           <format>$1-$2-$3</format>
12888         </numberFormat>
12889       </availableFormats>
12890       <generalDesc>
12891         <nationalNumberPattern>
12892           [1-9]\d{8,9}|
12893           0(?:
12894             [36]\d{7,14}|
12895             7\d{5,7}|
12896             8\d{7}
12897           )
12898         </nationalNumberPattern>
12899         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
12900       </generalDesc>
12901       <noInternationalDialling>
12902         <!-- Toll-free numbers with a leading "00" cannot be dialled internationally. -->
12903         <nationalNumberPattern>
12904           0(?:
12905             37\d{6,13}|
12906             66\d{6,13}|
12907             777(?:
12908               [01]\d{2}|
12909               5\d{3}|
12910               8\d{4}
12911             )|
12912             882[1245]\d{4}
12913           )
12914         </nationalNumberPattern>
12915         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
12916         <exampleNumber>0777012</exampleNumber>
12917       </noInternationalDialling>
12918       <fixedLine>
12919         <nationalNumberPattern>
12920           (?:
12921             1(?:
12922               1[235-8]|
12923               2[3-6]|
12924               3[3-9]|
12925               4[2-6]|
12926               [58][2-8]|
12927               6[2-7]|
12928               7[2-9]|
12929               9[1-9]
12930             )|
12931             2[2-9]\d|
12932             [36][1-9]\d|
12933             4(?:
12934               6[02-8]|
12935               [2-578]\d|
12936               9[2-59]
12937             )|
12938             5(?:
12939               6[1-9]|
12940               7[2-8]|
12941               [2-589]\d
12942             )|
12943             7(?:
12944               3[4-9]|
12945               4[02-9]|
12946               [25-9]\d
12947             )|
12948             8(?:
12949               3[2-9]|
12950               4[5-9]|
12951               5[1-9]|
12952               8[03-9]|
12953               [2679]\d
12954             )|
12955             9(?:
12956               [679][1-9]|
12957               [2-58]\d
12958             )
12959           )\d{6}
12960         </nationalNumberPattern>
12961         <possibleNumberPattern>\d{9}</possibleNumberPattern>
12962         <exampleNumber>312345678</exampleNumber>
12963       </fixedLine>
12964       <mobile>
12965         <nationalNumberPattern>
12966           (?:
12967             [79]0\d|
12968             80[1-9]
12969           )\d{7}
12970         </nationalNumberPattern>
12971         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12972         <exampleNumber>7012345678</exampleNumber>
12973       </mobile>
12974       <pager>
12975         <nationalNumberPattern>20\d{8}</nationalNumberPattern>
12976         <possibleNumberPattern>\d{10}</possibleNumberPattern>
12977         <exampleNumber>2012345678</exampleNumber>
12978       </pager>
12979       <tollFree>
12980         <!-- http://www.kddi.com/english/business/free_call_dx/number.html and
12981              http://tm.softbank.jp/english/business/phone_service/freecall_sp/index.html
12982              http://eonet.jp/home/denwa/service/access.html
12983              http://ci.fusioncom.co.jp/feature/
12984              http://www.auhikari.jp/service/tel/connection/index.html -->
12985         <!-- Note that in fact, the number length for 0037 and 0066 numbers should extend to 21
12986              digits, confirmed with Yahoo JP. However, this extends well beyond the maximum number
12987              length allowed by ITU and hence our library, so we only allow numbers up to 17 digits
12988              for now (including both leading 00s). -->
12989         <nationalNumberPattern>
12990           120\d{6}|
12991           800\d{7}|
12992           0(?:
12993             37\d{6,13}|
12994             66\d{6,13}|
12995             777(?:
12996               [01]\d{2}|
12997               5\d{3}|
12998               8\d{4}
12999             )|
13000             882[1245]\d{4}
13001           )
13002         </nationalNumberPattern>
13003         <possibleNumberPattern>\d{7,16}</possibleNumberPattern>
13004         <exampleNumber>120123456</exampleNumber>
13005       </tollFree>
13006       <premiumRate>
13007         <nationalNumberPattern>990\d{6}</nationalNumberPattern>
13008         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13009         <exampleNumber>990123456</exampleNumber>
13010       </premiumRate>
13011       <personalNumber>
13012         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
13013         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13014         <exampleNumber>601234567</exampleNumber>
13015       </personalNumber>
13016       <voip>
13017         <nationalNumberPattern>50[1-9]\d{7}</nationalNumberPattern>
13018         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13019         <exampleNumber>5012345678</exampleNumber>
13020       </voip>
13021       <!-- Storing "unified number service" as UAN. -->
13022       <uan>
13023         <nationalNumberPattern>570\d{6}</nationalNumberPattern>
13024         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13025         <exampleNumber>570123456</exampleNumber>
13026       </uan>
13027       <emergency>
13028         <nationalNumberPattern>11[09]</nationalNumberPattern>
13029         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13030         <exampleNumber>110</exampleNumber>
13031       </emergency>
13032     </territory>
13033
13034     <!-- Kenya -->
13035     <!-- http://www.cck.go.ke/licensing/numbering/plan.html -->
13036     <!-- http://en.wikipedia.org/wiki/+254 -->
13037     <territory id="KE" countryCode="254" internationalPrefix="000"
13038                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13039       <availableFormats>
13040         <numberFormat pattern="(\d{2})(\d{4,7})">
13041           <leadingDigits>[24-6]</leadingDigits>
13042           <format>$1 $2</format>
13043         </numberFormat>
13044         <numberFormat pattern="(\d{3})(\d{6,7})">
13045           <leadingDigits>7</leadingDigits>
13046           <format>$1 $2</format>
13047         </numberFormat>
13048         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
13049           <leadingDigits>[89]</leadingDigits>
13050           <format>$1 $2 $3</format>
13051         </numberFormat>
13052       </availableFormats>
13053       <generalDesc>
13054         <nationalNumberPattern>
13055           20\d{6,7}|
13056           [4-9]\d{6,9}
13057         </nationalNumberPattern>
13058         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
13059       </generalDesc>
13060       <fixedLine>
13061         <!-- The prefix 066 is supposed to be used only for 9-digit numbers, but none of these can
13062              be found online, and the plan says also it is migrating to 9 digit numbers. Both are
13063              supported for now. -->
13064         <nationalNumberPattern>
13065           20\d{6,7}|
13066           4(?:
13067             [013]\d{7}|
13068             [24-6]\d{5,7}
13069           )|
13070           5(?:
13071             [0-36-8]\d{5,7}|
13072             [459]\d{5}
13073           )|
13074           6(?:
13075             [08]\d{5}|
13076             [14-79]\d{5,7}|
13077             2\d{7}
13078           )
13079         </nationalNumberPattern>
13080         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
13081         <exampleNumber>202012345</exampleNumber>
13082       </fixedLine>
13083       <mobile>
13084         <nationalNumberPattern>
13085           7(?:
13086             0[0-8]|
13087             [123]\d|
13088             5[0-6]|
13089             7[0-5]|
13090             8[5-9]
13091           )\d{6}
13092         </nationalNumberPattern>
13093         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13094         <exampleNumber>712123456</exampleNumber>
13095       </mobile>
13096       <tollFree>
13097         <!-- Longer numbers have been found than the plan suggests, so we support them here too. -->
13098         <nationalNumberPattern>800[24-8]\d{5,6}</nationalNumberPattern>
13099         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13100         <exampleNumber>800223456</exampleNumber>
13101       </tollFree>
13102       <premiumRate>
13103         <nationalNumberPattern>900[02-578]\d{5}</nationalNumberPattern>
13104         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13105         <exampleNumber>900223456</exampleNumber>
13106       </premiumRate>
13107       <emergency>
13108         <!-- http://www.kenyapolice.go.ke/report_a_crime.asp -->
13109         <nationalNumberPattern>
13110           112|
13111           999
13112         </nationalNumberPattern>
13113         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13114         <exampleNumber>999</exampleNumber>
13115       </emergency>
13116     </territory>
13117
13118     <!-- Kyrgyzstan -->
13119     <!-- http://www.itu.int/oth/T0202000074/en -->
13120     <territory id="KG" countryCode="996" internationalPrefix="00"
13121                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13122       <availableFormats>
13123         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
13124           <leadingDigits>
13125             31[25]|
13126             [5-7]
13127           </leadingDigits>
13128           <format>$1 $2 $3</format>
13129         </numberFormat>
13130         <numberFormat pattern="(\d{4})(\d{5})">
13131           <leadingDigits>
13132             3(?:
13133               1[36]|
13134               [2-9]
13135             )
13136           </leadingDigits>
13137           <format>$1 $2</format>
13138         </numberFormat>
13139         <numberFormat pattern="(\d{3})(\d{3})(\d)(\d{3})">
13140           <leadingDigits>8</leadingDigits>
13141           <format>$1 $2 $3 $4</format>
13142         </numberFormat>
13143       </availableFormats>
13144       <generalDesc>
13145         <nationalNumberPattern>[35-8]\d{8,9}</nationalNumberPattern>
13146         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
13147       </generalDesc>
13148       <fixedLine>
13149         <!-- Extra area codes found on Web Search: 3147, 3150, 3948. -->
13150         <nationalNumberPattern>
13151           (?:
13152             3(?:
13153               1(?:
13154                 2\d|
13155                 3[1-9]|
13156                 47|
13157                 5[02]|
13158                 6[1-8]
13159               )|
13160               2(?:
13161                 22|
13162                 3[0-479]|
13163                 6[0-7]
13164               )|
13165               4(?:
13166                 22|
13167                 5[6-9]|
13168                 6[0-4]
13169               )|
13170               5(?:
13171                 22|
13172                 3[4-7]|
13173                 59|
13174                 6[0-5]
13175               )|
13176               6(?:
13177                 22|
13178                 5[35-7]|
13179                 6[0-3]
13180               )|
13181               7(?:
13182                 22|
13183                 3[468]|
13184                 4[1-9]|
13185                 59|
13186                 6\d|
13187                 7[5-7]
13188               )|
13189               9(?:
13190                 22|
13191                 4[1-8]|
13192                 6[0-8]
13193               )
13194             )|
13195             6(?:
13196               09|
13197               12|
13198               2[2-4]
13199             )\d
13200           )\d{5}
13201         </nationalNumberPattern>
13202         <exampleNumber>312123456</exampleNumber>
13203       </fixedLine>
13204       <mobile>
13205         <!-- Added 70[1235789] since SMS messages have been successfully sent to numbers with this
13206              prefix, and numbers have been found like this online.  -->
13207         <nationalNumberPattern>
13208           5[124-7]\d{7}|
13209           7(?:
13210             0[0-357-9]|
13211             7\d
13212           )\d{6}
13213         </nationalNumberPattern>
13214         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13215         <exampleNumber>700123456</exampleNumber>
13216       </mobile>
13217       <tollFree>
13218         <!-- Add an extra digit to the number pattern since the only toll-free number found on Web
13219              Search contains 10 digits instead of the 9 digits specified in the ITU document. -->
13220         <nationalNumberPattern>800\d{6,7}</nationalNumberPattern>
13221         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13222         <exampleNumber>800123456</exampleNumber>
13223       </tollFree>
13224       <!-- No premiumRate information can be found. -->
13225       <!-- http://www.iru-nelti.org/index/info-app/id.216 -->
13226       <emergency>
13227         <nationalNumberPattern>10[123]</nationalNumberPattern>
13228         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13229         <exampleNumber>101</exampleNumber>
13230       </emergency>
13231     </territory>
13232
13233     <!-- Cambodia -->
13234     <!-- http://www.itu.int/oth/T0202000023/en -->
13235     <!-- http://en.wikipedia.org/wiki/+855 -->
13236     <territory id="KH" countryCode="855" internationalPrefix="00[14-9]"
13237                nationalPrefix="0">
13238       <availableFormats>
13239         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$NP$FG">
13240           <leadingDigits>
13241             1\d[1-9]|
13242             [2-9]
13243           </leadingDigits>
13244           <format>$1 $2 $3</format>
13245         </numberFormat>
13246         <numberFormat pattern="(1[89]00)(\d{3})(\d{3})">
13247           <leadingDigits>1[89]0</leadingDigits>
13248           <format>$1 $2 $3</format>
13249         </numberFormat>
13250       </availableFormats>
13251       <generalDesc>
13252         <nationalNumberPattern>[1-9]\d{7,9}</nationalNumberPattern>
13253         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
13254       </generalDesc>
13255       <fixedLine>
13256         <!-- Allowing subscriber numbers beginning with 5 since Mobitel have informed us they have
13257              started issuing fixed-line numbers like this. Apparently, mobile-company-issued
13258              fixed-line numbers are one digit longer than government-issued numbers. Moreover, the
13259              range beginning with 6 seems to include some numbers that are one digit longer as well.
13260              Allowing 238\d{6} based on information from Cambodia Yellow Pages. -->
13261         <nationalNumberPattern>
13262           (?:
13263             2[3-6]|
13264             3[2-6]|
13265             4[2-4]|
13266             [5-7][2-5]
13267           )(?:
13268             [237-9]|
13269             4[56]|
13270             5\d|
13271             6\d?
13272           )\d{5}|
13273           238\d{6}
13274         </nationalNumberPattern>
13275         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
13276         <exampleNumber>23756789</exampleNumber>
13277       </fixedLine>
13278       <mobile>
13279         <!-- SMART uses prefixes 01[056], 070, 08[167] and 09[368].
13280              Beeline uses 060.
13281              Mobitel uses 01[1247].
13282              Cellcard uses 0857 and 061.
13283              Extra prefixes found online: 088, 097.
13284              Allowing 9-digit 12, 31, and 76 numbers based on information from Cambodia Yellow
13285              Pages.  -->
13286         <nationalNumberPattern>
13287           (?:
13288             1(?:
13289               [013-9]|
13290               2\d?
13291             )|
13292             31\d|
13293             6[016-9]|
13294             7(?:
13295               [07-9]|
13296               6\d
13297             )|
13298             8(?:
13299               [013-79]|
13300               8\d
13301             )|
13302             9(?:
13303               6\d|
13304               7\d?|
13305               [0-589]
13306             )
13307           )\d{6}
13308         </nationalNumberPattern>
13309         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
13310         <exampleNumber>91234567</exampleNumber>
13311       </mobile>
13312       <tollFree>
13313         <!-- Adding extra prefix 180021 used by tollfreetc.com.kh. -->
13314         <nationalNumberPattern>
13315           1800(?:
13316             1\d|
13317             2[019]
13318           )\d{4}
13319         </nationalNumberPattern>
13320         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13321         <exampleNumber>1800123456</exampleNumber>
13322       </tollFree>
13323       <premiumRate>
13324         <nationalNumberPattern>
13325           1900(?:
13326             1\d|
13327             2[09]
13328           )\d{4}
13329         </nationalNumberPattern>
13330         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13331         <exampleNumber>1900123456</exampleNumber>
13332       </premiumRate>
13333       <emergency>
13334         <!-- http://www.phnompenh.gov.kh/phnom-penh-city-emergency-numbers-24-hrs-169.html -->
13335         <nationalNumberPattern>
13336           11[789]|
13337           666
13338         </nationalNumberPattern>
13339         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13340         <exampleNumber>117</exampleNumber>
13341       </emergency>
13342     </territory>
13343
13344     <!-- Kiribati -->
13345     <!-- http://www.itu.int/oth/T0202000071/en -->
13346     <!-- We include the national prefix for parsing here just in case numbers can be dialled with a
13347          leading 0 - the main ITU document says this is not the case and no numbers online have been
13348          found formatted this way, but Kiribati's own document lists it as a national dialling
13349          prefix. -->
13350     <territory id="KI" countryCode="686" internationalPrefix="00"
13351                nationalPrefixForParsing="0">
13352       <!-- Numbers should be formatted as a block." -->
13353       <generalDesc>
13354         <nationalNumberPattern>[2-689]\d{4}</nationalNumberPattern>
13355         <possibleNumberPattern>\d{5}</possibleNumberPattern>
13356       </generalDesc>
13357       <fixedLine>
13358         <nationalNumberPattern>
13359           (?:
13360             [234]\d|
13361             50|
13362             8[1-5]
13363           )\d{3}
13364         </nationalNumberPattern>
13365         <exampleNumber>31234</exampleNumber>
13366       </fixedLine>
13367       <mobile>
13368         <!-- Exclude 99[2349] from mobile since these are emergency numbers. -->
13369         <nationalNumberPattern>
13370           6\d{4}|
13371           9(?:
13372             [0-8]\d|
13373             9[015-8]
13374           )\d{2}
13375         </nationalNumberPattern>
13376         <exampleNumber>61234</exampleNumber>
13377       </mobile>
13378       <emergency>
13379         <!-- www.tskl.net.ki/directory.pdf -->
13380         <nationalNumberPattern>99[2349]</nationalNumberPattern>
13381         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13382         <exampleNumber>999</exampleNumber>
13383       </emergency>
13384     </territory>
13385
13386     <!-- Comoros -->
13387     <!-- http://www.itu.int/oth/T020200002D/en -->
13388     <territory id="KM" countryCode="269" internationalPrefix="00">
13389       <availableFormats>
13390         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
13391           <format>$1 $2 $3</format>
13392         </numberFormat>
13393       </availableFormats>
13394       <generalDesc>
13395         <nationalNumberPattern>[379]\d{6}</nationalNumberPattern>
13396         <possibleNumberPattern>\d{7}</possibleNumberPattern>
13397       </generalDesc>
13398       <fixedLine>
13399         <!-- CDMA phones are included here, as they are considered as an extension of fixed line:
13400              http://www.comorestelecom.km/presentationcdma.php -->
13401         <nationalNumberPattern>
13402           7(?:
13403             6[0-37-9]|
13404             7[0-57-9]
13405           )\d{4}
13406         </nationalNumberPattern>
13407         <exampleNumber>7712345</exampleNumber>
13408       </fixedLine>
13409       <mobile>
13410         <nationalNumberPattern>3[234]\d{5}</nationalNumberPattern>
13411         <exampleNumber>3212345</exampleNumber>
13412       </mobile>
13413       <premiumRate>
13414         <!-- These are referred to as value-added services in the plan and no further information
13415              can be found. -->
13416         <nationalNumberPattern>
13417           (?:
13418             39[01]|
13419             9[01]0
13420           )\d{4}
13421         </nationalNumberPattern>
13422         <exampleNumber>9001234</exampleNumber>
13423       </premiumRate>
13424       <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1091.html -->
13425       <emergency>
13426         <nationalNumberPattern>1[78]</nationalNumberPattern>
13427         <possibleNumberPattern>\d{2}</possibleNumberPattern>
13428         <exampleNumber>17</exampleNumber>
13429       </emergency>
13430     </territory>
13431
13432     <!-- Saint Kitts and Nevis -->
13433     <!-- http://www.itu.int/oth/T02020000B0/en -->
13434     <territory id="KN" countryCode="1" leadingDigits="869" nationalPrefix="1"
13435                internationalPrefix="011">
13436       <generalDesc>
13437         <!-- NANPA country - uses US formatting rules -->
13438         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
13439         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13440       </generalDesc>
13441       <fixedLine>
13442         <!-- Adding the 869 302 prefix as it is used by Marriott Hotels, even though no other record
13443              of it can be found. -->
13444         <nationalNumberPattern>
13445           869(?:
13446             2(?:
13447               29|
13448               36
13449             )|
13450             302|
13451             4(?:
13452               6[5-9]|
13453               70
13454             )
13455           )\d{4}
13456         </nationalNumberPattern>
13457         <exampleNumber>8692361234</exampleNumber>
13458       </fixedLine>
13459       <mobile>
13460         <!-- Added some more prefixes in the 66 and 76 range from online numbers. -->
13461         <nationalNumberPattern>
13462           869(?:
13463             5(?:
13464               5[6-8]|
13465               6[5-7]
13466             )|
13467             66\d|
13468             76[02-6]
13469           )\d{4}
13470         </nationalNumberPattern>
13471         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13472         <exampleNumber>8695561234</exampleNumber>
13473       </mobile>
13474       <tollFree>
13475         <nationalNumberPattern>
13476           8(?:
13477             00|
13478             55|
13479             66|
13480             77|
13481             88
13482           )[2-9]\d{6}
13483         </nationalNumberPattern>
13484         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13485         <exampleNumber>8002123456</exampleNumber>
13486       </tollFree>
13487       <premiumRate>
13488         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
13489         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13490         <exampleNumber>9002123456</exampleNumber>
13491       </premiumRate>
13492       <personalNumber>
13493         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
13494         <nationalNumberPattern>
13495           5(?:
13496             00|
13497             33|
13498             44
13499           )[2-9]\d{6}
13500         </nationalNumberPattern>
13501         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13502         <exampleNumber>5002345678</exampleNumber>
13503       </personalNumber>
13504       <emergency>
13505         <!-- http://www.stkittstourism.kn/explore-st-kitts-facts.php
13506              http://barbados.usembassy.gov/emergency-st_kitts_nevis.html -->
13507         <nationalNumberPattern>
13508           333|
13509           9(?:
13510             11|
13511             99
13512           )
13513         </nationalNumberPattern>
13514         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13515         <exampleNumber>999</exampleNumber>
13516       </emergency>
13517     </territory>
13518
13519     <!--  Korea, Dem. People's Rep. of -->
13520     <!-- http://en.wikipedia.org/wiki/%2B850 -->
13521     <territory id="KP" countryCode="850" internationalPrefix="00|99"
13522                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
13523       <availableFormats>
13524         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13525           <leadingDigits>1</leadingDigits>
13526           <format>$1 $2 $3</format>
13527         </numberFormat>
13528         <numberFormat pattern="(\d)(\d{3})(\d{4})">
13529           <leadingDigits>2</leadingDigits>
13530           <format>$1 $2 $3</format>
13531         </numberFormat>
13532         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
13533           <leadingDigits>8</leadingDigits>
13534           <format>$1 $2 $3</format>
13535         </numberFormat>
13536       </availableFormats>
13537       <generalDesc>
13538         <nationalNumberPattern>
13539           1\d{9}|
13540           [28]\d{7}
13541         </nationalNumberPattern>
13542         <possibleNumberPattern>
13543           \d{6,8}|
13544           \d{10}
13545         </possibleNumberPattern>
13546       </generalDesc>
13547       <noInternationalDialling>
13548         <!-- For numbers starting with 2, only the 2381 range can be dialed internationally. -->
13549         <nationalNumberPattern>
13550           2(?:
13551             [0-24-9]\d{2}|
13552             3(?:
13553               [0-79]\d|
13554               8[02-9]
13555             )
13556           )\d{4}
13557         </nationalNumberPattern>
13558         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13559         <exampleNumber>23821234</exampleNumber>
13560       </noInternationalDialling>
13561       <fixedLine>
13562         <!-- Covers only numbers from Pyongyang and Rason Economic Special Zone. According to
13563              wikipedia, other ranges of phone numbers are top secret, unpublished, and not dialable
13564              from overseas. Also, there is conflicting information about the length of fixed-line
13565              numbers, so here we are following Wikipedia. -->
13566         <nationalNumberPattern>
13567           2\d{7}|
13568           85\d{6}
13569         </nationalNumberPattern>
13570         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
13571         <exampleNumber>21234567</exampleNumber>
13572       </fixedLine>
13573       <mobile>
13574         <nationalNumberPattern>19[123]\d{7}</nationalNumberPattern>
13575         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13576         <exampleNumber>1921234567</exampleNumber>
13577       </mobile>
13578       <!-- According to the following webpage, there is no emergency number in
13579            North Korea: http://www.netglobers.com/asia/north-korea-emergency-numbers-in-north-korea.html -->
13580     </territory>
13581
13582     <!-- Korea (Rep. of) -->
13583     <!-- http://www.itu.int/oth/T0202000072/en -->
13584     <!-- http://en.wikipedia.org/wiki/%2B82 -->
13585     <!-- http://www.kcc.go.kr/user.do?mode=view&page=P02030300&dc=K02030300&boardId=1074&boardSeq=2349 -->
13586     <!-- http://www.kcc.go.kr/user.do?mode=view&page=P02030300&dc=K02030300&boardId=1074&boardSeq=2240 -->
13587     <!-- http://www.telecentro.co.kr/sub/index.php?job=detail&ebcf_id=faq&page=1&mid=0503&eb_seq=36 -->
13588     <!-- Exceptions :
13589         internationalPrefix
13590             0031, 0033, 0071, 0073 - Special services of KT and DACOM, ignorable
13591         nationalPrefix
13592             1[4-6]XX-YYYY - Country-wide common number services, display as it is without hyphens -->
13593     <territory id="KR" countryCode="82" internationalPrefix="00(?:[124-68]|[37]\d{2})"
13594                nationalPrefix="0" nationalPrefixForParsing="0(8[1-46-8]|85\d{2})?"
13595                nationalPrefixFormattingRule="$NP$FG" carrierCodeFormattingRule="$NP$CC-$FG">
13596       <availableFormats>
13597         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
13598           <leadingDigits>
13599             1(?:
13600               0|
13601               1[19]|
13602               [69]9|
13603               5[458]
13604             )|
13605             [57]0
13606           </leadingDigits>
13607           <leadingDigits>
13608             1(?:
13609               0|
13610               1[19]|
13611               [69]9|
13612               5(?:
13613                 44|
13614                 59|
13615                 8
13616               )
13617             )|
13618             [57]0
13619           </leadingDigits>
13620           <format>$1-$2-$3</format>
13621         </numberFormat>
13622         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
13623           <leadingDigits>
13624             1(?:
13625               [169][2-8]|
13626               [78]|
13627               5[1-4]
13628             )|
13629             [68]0|
13630             [3-6][1-9][1-9]
13631           </leadingDigits>
13632           <leadingDigits>
13633             1(?:
13634               [169][2-8]|
13635               [78]|
13636               5(?:
13637                 [1-3]|
13638                 4[56]
13639               )
13640             )|
13641             [68]0|
13642             [3-6][1-9][1-9]
13643           </leadingDigits>
13644           <format>$1-$2-$3</format>
13645         </numberFormat>
13646         <numberFormat pattern="(\d{3})(\d)(\d{4})">
13647           <leadingDigits>131</leadingDigits>
13648           <leadingDigits>1312</leadingDigits>
13649           <format>$1-$2-$3</format>
13650         </numberFormat>
13651         <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
13652           <leadingDigits>131</leadingDigits>
13653           <leadingDigits>131[13-9]</leadingDigits>
13654           <format>$1-$2-$3</format>
13655         </numberFormat>
13656         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
13657           <leadingDigits>13[2-9]</leadingDigits>
13658           <format>$1-$2-$3</format>
13659         </numberFormat>
13660         <!-- 030 numbers are used for Unified Messaging Services, according to the plan. There is a
13661              limit of what digits may follow the 030, but we ignore that here. These numbers are
13662              actually not supported for validation purposes by the library at the moment as no
13663              online examples can be found, but we leave theme here so formatting continues to work
13664              if they are entered. -->
13665         <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{4})">
13666           <leadingDigits>30</leadingDigits>
13667           <format>$1-$2-$3-$4</format>
13668         </numberFormat>
13669         <numberFormat pattern="(\d)(\d{3,4})(\d{4})">
13670           <leadingDigits>2[1-9]</leadingDigits>
13671           <format>$1-$2-$3</format>
13672         </numberFormat>
13673         <numberFormat pattern="(\d)(\d{3,4})">
13674           <leadingDigits>21[0-46-9]</leadingDigits>
13675           <format>$1-$2</format>
13676         </numberFormat>
13677         <numberFormat pattern="(\d{2})(\d{3,4})">
13678           <leadingDigits>[3-6][1-9]1</leadingDigits>
13679           <leadingDigits>
13680             [3-6][1-9]1(?:
13681               [0-46-9]
13682             )
13683           </leadingDigits>
13684           <format>$1-$2</format>
13685         </numberFormat>
13686         <!-- Company numbers. -->
13687         <numberFormat pattern="(\d{4})(\d{4})"
13688           nationalPrefixFormattingRule="$FG">
13689           <leadingDigits>
13690             1(?:
13691               5[46-9]|
13692               6[04678]
13693             )
13694           </leadingDigits>
13695           <leadingDigits>
13696             1(?:
13697               5(?:
13698                 44|
13699                 66|
13700                 77|
13701                 88|
13702                 99
13703               )|
13704               6(?:
13705                 00|
13706                 44|
13707                 6[16]|
13708                 70|
13709                 88
13710               )
13711             )
13712           </leadingDigits>
13713           <format>$1-$2</format>
13714         </numberFormat>
13715       </availableFormats>
13716       <generalDesc>
13717         <nationalNumberPattern>
13718           [1-7]\d{3,9}|
13719           8\d{8}
13720         </nationalNumberPattern>
13721         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13722       </generalDesc>
13723       <fixedLine>
13724         <!-- We omit 049, supposedly for Kaesong Industrial Region, since real numbers can't be
13725              found, and it is in North Korea anyway. We support 7-8 digits long subscriber numbers
13726              starting with 1 based on evidence of real numbers found online. -->
13727         <nationalNumberPattern>
13728           (?:
13729             2|
13730             3[1-3]|
13731             [46][1-4]|
13732             5[1-5]
13733           )(?:
13734             1\d{2,3}|
13735             [1-9]\d{6,7}
13736           )
13737         </nationalNumberPattern>
13738         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
13739         <exampleNumber>22123456</exampleNumber>
13740       </fixedLine>
13741       <mobile>
13742         <nationalNumberPattern>1[0-26-9]\d{7,8}</nationalNumberPattern>
13743         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13744         <exampleNumber>1023456789</exampleNumber>
13745       </mobile>
13746       <pager>
13747         <nationalNumberPattern>15\d{7,8}</nationalNumberPattern>
13748         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
13749         <exampleNumber>1523456789</exampleNumber>
13750       </pager>
13751       <tollFree>
13752         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
13753         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13754         <exampleNumber>801234567</exampleNumber>
13755       </tollFree>
13756       <!-- The information below is provided by a Korean person. -->
13757       <premiumRate>
13758         <nationalNumberPattern>60[2-9]\d{6}</nationalNumberPattern>
13759         <possibleNumberPattern>\d{9}</possibleNumberPattern>
13760         <exampleNumber>602345678</exampleNumber>
13761       </premiumRate>
13762       <personalNumber>
13763         <nationalNumberPattern>50\d{8}</nationalNumberPattern>
13764         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13765         <exampleNumber>5012345678</exampleNumber>
13766       </personalNumber>
13767       <voip>
13768         <nationalNumberPattern>70\d{8}</nationalNumberPattern>
13769         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13770         <exampleNumber>7012345678</exampleNumber>
13771       </voip>
13772       <uan>
13773         <nationalNumberPattern>
13774           1(?:
13775             5(?:
13776               44|
13777               66|
13778               77|
13779               88|
13780               99
13781             )|
13782             6(?:
13783               00|
13784               44|
13785               6[16]|
13786               70|
13787               88
13788             )
13789           )\d{4}
13790         </nationalNumberPattern>
13791         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13792         <exampleNumber>15441234</exampleNumber>
13793       </uan>
13794       <emergency>
13795         <nationalNumberPattern>11[29]</nationalNumberPattern>
13796         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13797         <exampleNumber>112</exampleNumber>
13798       </emergency>
13799     </territory>
13800
13801     <!-- Kuwait -->
13802     <!-- http://www.itu.int/oth/T0202000073/en -->
13803     <territory id="KW" countryCode="965" internationalPrefix="00">
13804       <availableFormats>
13805         <!-- Format is from ITU. -->
13806         <numberFormat pattern="(\d{4})(\d{3,4})">
13807           <leadingDigits>[1269]</leadingDigits>
13808           <format>$1 $2</format>
13809         </numberFormat>
13810         <numberFormat pattern="(5[015]\d)(\d{5})">
13811           <leadingDigits>5</leadingDigits>
13812           <format>$1 $2</format>
13813         </numberFormat>
13814       </availableFormats>
13815       <generalDesc>
13816         <nationalNumberPattern>[12569]\d{6,7}</nationalNumberPattern>
13817         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13818       </generalDesc>
13819       <fixedLine>
13820         <nationalNumberPattern>
13821           (?:
13822             18\d|
13823             2(?:
13824               [23]\d{2}|
13825               4(?:
13826                 [1-35-9]\d|
13827                 44
13828               )|
13829               5(?:
13830                 0[034]|
13831                 [2-46]\d|
13832                 5[1-3]|
13833                 7[1-7]
13834               )
13835             )
13836           )\d{4}
13837         </nationalNumberPattern>
13838         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
13839         <exampleNumber>22345678</exampleNumber>
13840       </fixedLine>
13841       <mobile>
13842         <!-- The mention of the mobile range 6933 0000 - 6969 9999 seems to be
13843              a mistake in the ITU plan, and should be 6933 0000 - 6933 9999. -->
13844         <nationalNumberPattern>
13845           (?:
13846             5(?:
13847               1[0-35]|
13848               [05]\d
13849             )|
13850             6(?:
13851               0[034679]|
13852               5[015-9]|
13853               6\d|
13854               7[067]|
13855               9[0369]
13856             )|
13857             9(?:
13858               0[09]|
13859               4[049]|
13860               6[069]|
13861               [79]\d|
13862               88
13863             )
13864           )\d{5}
13865         </nationalNumberPattern>
13866         <possibleNumberPattern>\d{8}</possibleNumberPattern>
13867         <exampleNumber>50012345</exampleNumber>
13868       </mobile>
13869       <!-- No tollFree or premiumRate information can be found. -->
13870       <emergency>
13871         <nationalNumberPattern>112</nationalNumberPattern>
13872         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13873         <exampleNumber>112</exampleNumber>
13874       </emergency>
13875     </territory>
13876
13877     <!-- Cayman Islands -->
13878     <!-- http://www.itu.int/oth/T0202000027/en -->
13879     <territory id="KY" countryCode="1" leadingDigits="345" nationalPrefix="1"
13880                internationalPrefix="011">
13881       <generalDesc>
13882         <!-- NANPA country - uses US formatting rules -->
13883         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
13884         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
13885       </generalDesc>
13886       <!-- The 800 NXX code is listed as being "national only", but we successfully reached numbers
13887            from Switzerland with this prefix so do not list it as noInternationalDialling. -->
13888       <fixedLine>
13889         <!-- The Westtel numbers in the plan seem now to be live and assigned to fixed-line phones,
13890              as per numbers found online and their website www.logic.ky. -->
13891         <nationalNumberPattern>
13892           345(?:
13893             2(?:
13894               22|
13895               44
13896             )|
13897             444|
13898             6(?:
13899               23|
13900               38|
13901               40
13902             )|
13903             7(?:
13904               4[35-79]|
13905               6[6-9]|
13906               77
13907             )|
13908             8(?:
13909               00|
13910               1[45]|
13911               25|
13912               [48]8
13913             )|
13914             9(?:
13915               14|
13916               4[035-9]
13917             )
13918           )\d{4}
13919         </nationalNumberPattern>
13920         <exampleNumber>3452221234</exampleNumber>
13921       </fixedLine>
13922       <mobile>
13923         <!-- Adding central office codes 321, 322, 328, 576, 923 & 936 from numbers found online.
13924              Most central office codes that were surrendered have not been included, with the
13925              exception of 546 where numbers have been found. -->
13926         <nationalNumberPattern>
13927           345(?:
13928             32[1-9]|
13929             5(?:
13930               1[67]|
13931               2[5-7]|
13932               4[6-8]|
13933               76
13934             )|
13935             9(?:
13936               1[67]|
13937               2[3-9]|
13938               3[689]
13939             )
13940           )\d{4}
13941         </nationalNumberPattern>
13942         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13943         <exampleNumber>3453231234</exampleNumber>
13944       </mobile>
13945       <pager>
13946         <nationalNumberPattern>345849\d{4}</nationalNumberPattern>
13947         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13948         <exampleNumber>3458491234</exampleNumber>
13949       </pager>
13950       <tollFree>
13951         <nationalNumberPattern>
13952           8(?:
13953             00|
13954             55|
13955             66|
13956             77|
13957             88
13958           )[2-9]\d{6}
13959         </nationalNumberPattern>
13960         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13961         <exampleNumber>8002345678</exampleNumber>
13962       </tollFree>
13963       <premiumRate>
13964         <nationalNumberPattern>
13965           900[2-9]\d{6}|
13966           345976\d{4}
13967         </nationalNumberPattern>
13968         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13969         <exampleNumber>9002345678</exampleNumber>
13970       </premiumRate>
13971       <personalNumber>
13972         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
13973         <nationalNumberPattern>
13974           5(?:
13975             00|
13976             33|
13977             44
13978           )[2-9]\d{6}
13979         </nationalNumberPattern>
13980         <possibleNumberPattern>\d{10}</possibleNumberPattern>
13981         <exampleNumber>5002345678</exampleNumber>
13982       </personalNumber>
13983       <emergency>
13984         <nationalNumberPattern>911</nationalNumberPattern>
13985         <possibleNumberPattern>\d{3}</possibleNumberPattern>
13986         <exampleNumber>911</exampleNumber>
13987       </emergency>
13988     </territory>
13989
13990     <!-- Kazakhstan -->
13991     <!-- http://www.itu.int/oth/T020200006F/en -->
13992     <territory id="KZ" countryCode="7" preferredInternationalPrefix="8~10"
13993                internationalPrefix="810" nationalPrefix="8">
13994        <!-- Formatting rules obtained from Russia. -->
13995       <generalDesc>
13996         <!-- We make this as specific as possible to overlap as little as possible with Russia, so
13997              determining the country is faster. -->
13998         <nationalNumberPattern>
13999           (?:
14000             33\d|
14001             7\d{2}|
14002             80[09]
14003           )\d{7}
14004         </nationalNumberPattern>
14005         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14006       </generalDesc>
14007       <noInternationalDialling>
14008         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
14009         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14010         <exampleNumber>7511234567</exampleNumber>
14011       </noInternationalDialling>
14012       <fixedLine>
14013         <!-- VSAT numbers are also included here. We also include the area code for Baikonur (336
14014              22), which is within Kazakhstan but in fact rented and administered by Russia at the
14015              moment. -->
14016         <nationalNumberPattern>
14017           33622\d{5}|
14018           7(?:
14019             1(?:
14020               0(?:
14021                 [23]\d|
14022                 4[023]|
14023                 59|
14024                 63
14025               )|
14026               1(?:
14027                 [23]\d|
14028                 4[0-79]|
14029                 59
14030               )|
14031               2(?:
14032                 [23]\d|
14033                 59
14034               )|
14035               3(?:
14036                 2\d|
14037                 3[1-79]|
14038                 4[0-35-9]|
14039                 59
14040               )|
14041               4(?:
14042                 2\d|
14043                 3[013-79]|
14044                 4[0-8]|
14045                 5[1-79]
14046               )|
14047               5(?:
14048                 2\d|
14049                 3[1-8]|
14050                 4[1-7]|
14051                 59
14052               )|
14053               6(?:
14054                 [234]\d|
14055                 5[19]|
14056                 61
14057               )|
14058               72\d|
14059               8(?:
14060                 [27]\d|
14061                 3[1-46-9]|
14062                 4[0-5]
14063               )
14064             )|
14065             2(?:
14066               1(?:
14067                 [23]\d|
14068                 4[46-9]|
14069                 5[3469]
14070               )|
14071               2(?:
14072                 2\d|
14073                 3[0679]|
14074                 46|
14075                 5[12679]
14076               )|
14077               3(?:
14078                 [234]\d|
14079                 5[139]
14080               )|
14081               4(?:
14082                 2\d|
14083                 3[1235-9]|
14084                 59
14085               )|
14086               5(?:
14087                 [23]\d|
14088                 4[01246-8]|
14089                 59|
14090                 61
14091               )|
14092               6(?:
14093                 2\d|
14094                 3[1-9]|
14095                 4[0-4]|
14096                 59
14097               )|
14098               7(?:
14099                 [237]\d|
14100                 40|
14101                 5[279]
14102               )|
14103               8(?:
14104                 [23]\d|
14105                 4[0-3]|
14106                 59
14107               )|
14108               9(?:
14109                 2\d|
14110                 3[124578]|
14111                 59
14112               )
14113             )
14114           )\d{5}
14115         </nationalNumberPattern>
14116         <exampleNumber>7123456789</exampleNumber>
14117       </fixedLine>
14118       <mobile>
14119         <!-- Added 776, apparently assigned to Beeline, and 747 for Tele2. -->
14120         <nationalNumberPattern>
14121           7(?:
14122             0[01257]|
14123             47|
14124             6[02-4]|
14125             7[15-8]|
14126             85
14127           )\d{7}
14128         </nationalNumberPattern>
14129         <exampleNumber>7710009998</exampleNumber>
14130       </mobile>
14131       <tollFree>
14132         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
14133         <exampleNumber>8001234567</exampleNumber>
14134       </tollFree>
14135       <premiumRate>
14136         <nationalNumberPattern>809\d{7}</nationalNumberPattern>
14137         <exampleNumber>8091234567</exampleNumber>
14138       </premiumRate>
14139       <voip>
14140         <nationalNumberPattern>751\d{7}</nationalNumberPattern>
14141         <exampleNumber>7511234567</exampleNumber>
14142       </voip>
14143       <emergency>
14144         <nationalNumberPattern>
14145           1(?:
14146             0[123]|
14147             12
14148           )
14149         </nationalNumberPattern>
14150         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14151         <exampleNumber>112</exampleNumber>
14152       </emergency>
14153     </territory>
14154
14155     <!-- Lao People's Dem. Rep. -->
14156     <!-- http://www.itu.int/oth/T0202000075/en (Seems incomplete) -->
14157     <!-- http://en.wikipedia.org/wiki/+856 -->
14158     <territory id="LA" countryCode="856" internationalPrefix="00"
14159                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14160       <availableFormats>
14161         <numberFormat pattern="(20)(\d{2})(\d{3})(\d{3})">
14162           <leadingDigits>20</leadingDigits>
14163           <format>$1 $2 $3 $4</format>
14164         </numberFormat>
14165         <numberFormat pattern="([2-8]\d)(\d{3})(\d{3})">
14166           <leadingDigits>
14167             2[13]|
14168             [3-8]
14169           </leadingDigits>
14170           <format>$1 $2 $3</format>
14171         </numberFormat>
14172       </availableFormats>
14173       <generalDesc>
14174         <nationalNumberPattern>[2-8]\d{7,9}</nationalNumberPattern>
14175         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
14176       </generalDesc>
14177       <fixedLine>
14178         <nationalNumberPattern>
14179           (?:
14180             2[13]|
14181             [35-7][14]|
14182             41|
14183             8[1468]
14184           )\d{6}
14185         </nationalNumberPattern>
14186         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
14187         <exampleNumber>21212862</exampleNumber>
14188       </fixedLine>
14189       <mobile>
14190         <!-- Adding 202[89], 205[89], 207[68] and 209[57] from numbers found online. -->
14191         <nationalNumberPattern>
14192           20(?:
14193             2[2389]|
14194             5[4-689]|
14195             7[6-8]|
14196             9[57-9]
14197           )\d{6}
14198         </nationalNumberPattern>
14199         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14200         <exampleNumber>2023123456</exampleNumber>
14201       </mobile>
14202       <!-- No information on other types of phone numbers for Lao P.D.R. has been found. -->
14203       <emergency>
14204         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_946.html -->
14205         <nationalNumberPattern>19[015]</nationalNumberPattern>
14206         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14207         <exampleNumber>190</exampleNumber>
14208       </emergency>
14209     </territory>
14210
14211     <!-- Lebanon -->
14212     <!-- http://www.itu.int/oth/T0202000077/en -->
14213     <!-- http://en.wikipedia.org/wiki/%2B961 -->
14214     <territory id="LB" countryCode="961" internationalPrefix="00" nationalPrefix="0">
14215       <availableFormats>
14216         <numberFormat pattern="(\d)(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
14217           <leadingDigits>
14218             [13-6]|
14219             7(?:
14220               [2-579]|
14221               62|
14222               8[0-7]
14223             )|
14224             [89][2-9]
14225             </leadingDigits>
14226           <format>$1 $2 $3</format>
14227         </numberFormat>
14228         <numberFormat pattern="([7-9]\d)(\d{3})(\d{3})">
14229           <leadingDigits>
14230             [89][01]|
14231             7(?:
14232               [01]|
14233               6[013-9]|
14234               8[89]|
14235               91
14236             )
14237           </leadingDigits>
14238           <format>$1 $2 $3</format>
14239         </numberFormat>
14240       </availableFormats>
14241       <generalDesc>
14242         <nationalNumberPattern>[13-9]\d{6,7}</nationalNumberPattern>
14243         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
14244       </generalDesc>
14245       <fixedLine>
14246         <nationalNumberPattern>
14247           (?:
14248             [14-6]\d{2}|
14249             7(?:
14250               [2-579]\d|
14251               62|
14252               8[0-7]
14253             )|
14254             [89][2-9]\d
14255           )\d{4}
14256         </nationalNumberPattern>
14257         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14258         <exampleNumber>1123456</exampleNumber>
14259       </fixedLine>
14260       <mobile>
14261         <!-- We only validate the first three digits here, since the ranges are growing rapidly. -->
14262         <nationalNumberPattern>
14263           (?:
14264             3\d|
14265             7(?:
14266               [01]\d|
14267               6[013-9]|
14268               8[89]|
14269               91
14270             )
14271           )\d{5}
14272         </nationalNumberPattern>
14273         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
14274         <exampleNumber>71123456</exampleNumber>
14275       </mobile>
14276       <premiumRate>
14277         <nationalNumberPattern>9[01]\d{6}</nationalNumberPattern>
14278         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14279         <exampleNumber>90123456</exampleNumber>
14280       </premiumRate>
14281       <sharedCost>
14282         <nationalNumberPattern>8[01]\d{6}</nationalNumberPattern>
14283         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14284         <exampleNumber>80123456</exampleNumber>
14285       </sharedCost>
14286       <emergency>
14287         <nationalNumberPattern>
14288           1(?:
14289             12|
14290             40|
14291             75
14292           )|
14293           999
14294         </nationalNumberPattern>
14295         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14296         <exampleNumber>112</exampleNumber>
14297       </emergency>
14298     </territory>
14299
14300     <!-- Saint Lucia -->
14301     <!-- http://www.itu.int/oth/T02020000B1/en -->
14302     <territory id="LC" countryCode="1" leadingDigits="758" nationalPrefix="1"
14303                internationalPrefix="011">
14304       <generalDesc>
14305         <!-- NANPA country - uses US formatting rules -->
14306         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
14307         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
14308       </generalDesc>
14309       <fixedLine>
14310         <!-- Adding 430 and 572 since numbers have been found with these prefixes online. -->
14311         <nationalNumberPattern>
14312           758(?:
14313             234|
14314             4(?:
14315               30|
14316               5[0-9]|
14317               6[2-9]|
14318               8[0-2]
14319             )|
14320             572|
14321             638|
14322             758
14323           )\d{4}
14324         </nationalNumberPattern>
14325         <exampleNumber>7582345678</exampleNumber>
14326       </fixedLine>
14327       <mobile>
14328         <!-- Adding 72[1256] as these prefixes are found widely on the internet and SMS messages
14329              have been successfully delivered to these numbers. -->
14330         <nationalNumberPattern>
14331           758(?:
14332             28[4-7]|
14333             384|
14334             4(?:
14335               6[01]|
14336               8[4-9]
14337             )|
14338             5(?:
14339               1[89]|
14340               20|
14341               84
14342             )|
14343             7(?:
14344               1[2-9]|
14345               2[0-6]
14346             )
14347           )\d{4}
14348         </nationalNumberPattern>
14349         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14350         <exampleNumber>7582845678</exampleNumber>
14351       </mobile>
14352       <tollFree>
14353         <nationalNumberPattern>
14354           8(?:
14355             00|
14356             55|
14357             66|
14358             77|
14359             88
14360           )[2-9]\d{6}
14361         </nationalNumberPattern>
14362         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14363         <exampleNumber>8002123456</exampleNumber>
14364       </tollFree>
14365       <premiumRate>
14366         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
14367         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14368         <exampleNumber>9002123456</exampleNumber>
14369       </premiumRate>
14370       <personalNumber>
14371         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
14372         <nationalNumberPattern>
14373           5(?:
14374             00|
14375             33|
14376             44
14377           )[2-9]\d{6}
14378         </nationalNumberPattern>
14379         <possibleNumberPattern>\d{10}</possibleNumberPattern>
14380         <exampleNumber>5002345678</exampleNumber>
14381       </personalNumber>
14382       <emergency>
14383         <!-- http://barbados.usembassy.gov/emergency-st_lucia.html
14384              http://www.stlucia.org/planner/travel.asp
14385              Note the second source only mentions 911, so we are not sure if 999 is indeed an
14386              emergency number here. -->
14387         <nationalNumberPattern>
14388           9(?:
14389             11|
14390             99
14391           )
14392         </nationalNumberPattern>
14393         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14394         <exampleNumber>911</exampleNumber>
14395       </emergency>
14396     </territory>
14397
14398     <!-- Liechtenstein -->
14399     <!-- http://www.llv.li/amtsstellen/llv-ak-nummerierung.htm -->
14400     <!-- http://www.telecom.li has some different patterns for tollfree and shared cost numbers -
14401          look at "Mehrwertnummer". -->
14402     <!-- The national prefix of "0" is only used for 0800 and 0900 numbers. -->
14403     <territory id="LI" countryCode="423" internationalPrefix="00" nationalPrefix="0">
14404       <availableFormats>
14405         <numberFormat pattern="(\d{3})(\d{2})(\d{2})">
14406           <leadingDigits>
14407             [23]|
14408             7[3-57-9]|
14409             87
14410           </leadingDigits>
14411           <format>$1 $2 $3</format>
14412         </numberFormat>
14413         <numberFormat pattern="(6\d)(\d{3})(\d{3})">
14414           <leadingDigits>6</leadingDigits>
14415           <format>$1 $2 $3</format>
14416         </numberFormat>
14417         <numberFormat pattern="(6[567]\d)(\d{3})(\d{3})">
14418           <leadingDigits>6[567]</leadingDigits>
14419           <format>$1 $2 $3</format>
14420         </numberFormat>
14421         <numberFormat pattern="(69)(7\d{2})(\d{4})">
14422           <leadingDigits>697</leadingDigits>
14423           <format>$1 $2 $3</format>
14424         </numberFormat>
14425         <numberFormat pattern="([7-9]0\d)(\d{2})(\d{2})">
14426           <leadingDigits>[7-9]0</leadingDigits>
14427           <format>$1 $2 $3</format>
14428         </numberFormat>
14429         <!-- Numbers of the form [89]00\d{6} are Swiss numbers callable from Liechtenstein. -->
14430         <numberFormat pattern="([89]0\d)(\d{2})(\d{2})(\d{2})"
14431           nationalPrefixFormattingRule="$NP$FG">
14432           <leadingDigits>[89]0</leadingDigits>
14433           <format>$1 $2 $3 $4</format>
14434         </numberFormat>
14435       </availableFormats>
14436       <generalDesc>
14437         <nationalNumberPattern>
14438           6\d{8}|
14439           [23789]\d{6}
14440         </nationalNumberPattern>
14441         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14442       </generalDesc>
14443       <fixedLine>
14444         <nationalNumberPattern>
14445           (?:
14446             2(?:
14447               01|
14448               1[27]|
14449               3\d|
14450               6[02-578]|
14451               96
14452             )|
14453             3(?:
14454               7[0135-7]|
14455               8[048]|
14456               9[0269]
14457             )
14458           )\d{4}
14459         </nationalNumberPattern>
14460         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14461         <exampleNumber>2345678</exampleNumber>
14462       </fixedLine>
14463       <mobile>
14464         <nationalNumberPattern>
14465           6(?:
14466             51[01]|
14467             6(?:
14468               [01][0-4]|
14469               2[016-9]|
14470               88
14471             )|
14472             710
14473           )\d{5}|
14474           7(?:
14475             36|
14476             4[25]|
14477             56|
14478             [7-9]\d
14479           )\d{4}
14480         </nationalNumberPattern>
14481         <exampleNumber>661234567</exampleNumber>
14482       </mobile>
14483       <!-- The prefix 809 seems to be used for AT&T and Verizon access lines from Liechtenstein,
14484            even though it doesn't appear in the plan. -->
14485       <tollFree>
14486         <nationalNumberPattern>
14487           80(?:
14488             0(?:
14489               2[238]|
14490               79
14491             )|
14492             9\d{2}
14493           )\d{2}
14494         </nationalNumberPattern>
14495         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14496         <exampleNumber>8002222</exampleNumber>
14497       </tollFree>
14498       <premiumRate>
14499         <nationalNumberPattern>
14500           90(?:
14501             0(?:
14502               2[278]|
14503               79
14504             )|
14505             1(?:
14506               23|
14507               3[012]
14508             )|
14509             6(?:
14510               4\d|
14511               6[0126]
14512             )
14513           )\d{2}
14514         </nationalNumberPattern>
14515         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14516         <exampleNumber>9002222</exampleNumber>
14517       </premiumRate>
14518       <uan>
14519         <nationalNumberPattern>
14520           87(?:
14521             0[128]|
14522             7[0-4]
14523           )\d{3}
14524         </nationalNumberPattern>
14525         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14526         <exampleNumber>8770123</exampleNumber>
14527       </uan>
14528       <voicemail>
14529         <nationalNumberPattern>
14530           697(?:
14531             [35]6|
14532             4[25]|
14533             [7-9]\d
14534           )\d{4}
14535         </nationalNumberPattern>
14536         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14537         <exampleNumber>697361234</exampleNumber>
14538       </voicemail>
14539       <personalNumber>
14540         <nationalNumberPattern>701\d{4}</nationalNumberPattern>
14541         <possibleNumberPattern>\d{7}</possibleNumberPattern>
14542         <exampleNumber>7011234</exampleNumber>
14543       </personalNumber>
14544       <!-- Information for short codes and emergency numbers comes from:
14545            http://www.llv.li/pdf-llv-ak-shortnumbers_20110331.pdf -->
14546       <emergency>
14547         <nationalNumberPattern>
14548           1(?:
14549             1[278]|
14550             44
14551           )
14552         </nationalNumberPattern>
14553         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14554         <exampleNumber>112</exampleNumber>
14555       </emergency>
14556     </territory>
14557
14558     <!-- Sri Lanka -->
14559     <!-- http://en.wikipedia.org/wiki/%2B94 -->
14560     <!-- http://www.itu.int/oth/T02020000C3/en -->
14561     <territory id="LK" countryCode="94" internationalPrefix="00"
14562                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14563       <availableFormats>
14564         <numberFormat pattern="(\d{2})(\d{1})(\d{6})">
14565           <leadingDigits>[1-689]</leadingDigits>
14566           <format>$1 $2 $3</format>
14567         </numberFormat>
14568         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14569           <leadingDigits>7</leadingDigits>
14570           <format>$1 $2 $3</format>
14571         </numberFormat>
14572       </availableFormats>
14573       <generalDesc>
14574         <nationalNumberPattern>[1-9]\d{8}</nationalNumberPattern>
14575         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14576       </generalDesc>
14577       <fixedLine>
14578         <nationalNumberPattern>
14579           (?:
14580             [189]1|
14581             2[13-7]|
14582             3[1-8]|
14583             4[157]|
14584             5[12457]|
14585             6[35-7]
14586           )[2-57]\d{6}
14587         </nationalNumberPattern>
14588         <exampleNumber>112345678</exampleNumber>
14589       </fixedLine>
14590       <mobile>
14591         <!-- Adding the prefix 76 for Dialog, based on information from open-source users. -->
14592         <nationalNumberPattern>7[125-8]\d{7}</nationalNumberPattern>
14593         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14594         <exampleNumber>712345678</exampleNumber>
14595       </mobile>
14596       <emergency>
14597         <nationalNumberPattern>11[0189]</nationalNumberPattern>
14598         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14599         <exampleNumber>119</exampleNumber>
14600       </emergency>
14601     </territory>
14602
14603     <!-- Liberia -->
14604     <!-- http://www.itu.int/oth/T0202000079/en -->
14605     <territory id="LR" countryCode="231" internationalPrefix="00"
14606                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
14607       <availableFormats>
14608         <!-- Formatting from Ministry of Agriculture,
14609         http://www.moa.gov.lr/content.php?sub=Email&?related=Contacts -->
14610         <numberFormat pattern="([279]\d)(\d{3})(\d{3})">
14611           <leadingDigits>[279]</leadingDigits>
14612           <format>$1 $2 $3</format>
14613         </numberFormat>
14614         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
14615           <leadingDigits>7</leadingDigits>
14616           <format>$1 $2 $3</format>
14617         </numberFormat>
14618         <numberFormat pattern="([4-6])(\d{3})(\d{3})">
14619           <leadingDigits>[4-6]</leadingDigits>
14620           <format>$1 $2 $3</format>
14621         </numberFormat>
14622         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
14623           <leadingDigits>[38]</leadingDigits>
14624           <format>$1 $2 $3</format>
14625         </numberFormat>
14626       </availableFormats>
14627       <generalDesc>
14628         <nationalNumberPattern>
14629           (?:
14630             [29]\d|
14631             [4-6]|
14632             7\d{1,2}|
14633             [38]\d{2}
14634           )\d{6}
14635         </nationalNumberPattern>
14636         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
14637       </generalDesc>
14638       <fixedLine>
14639         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14640         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14641         <exampleNumber>21234567</exampleNumber>
14642       </fixedLine>
14643       <mobile>
14644         <!-- According to information from Lonestar Communications Corporation, the prefix 6 is
14645              being removed, but as of June 2012 is in parallel running with their new prefix 88.
14646              According to Cellcom Liberia, they have issued 9 digit numbers starting with 77. -->
14647         <nationalNumberPattern>
14648           (?:
14649             4[67]|
14650             5\d|
14651             6[4-8]|
14652             77?\d{2}|
14653             88\d{2}
14654           )\d{5}
14655         </nationalNumberPattern>
14656         <exampleNumber>4612345</exampleNumber>
14657       </mobile>
14658       <premiumRate>
14659         <!-- Telemedia service is listed under premium rate. -->
14660         <!-- Note that as of March 2013, the ITU document talks about the withdrawal of the range
14661              (90) 0 XXX XXX. This is a 9 digit range and one we have never supported, but this could
14662              be a mistake in the ITU document and refer to (90) 0XX XXX. However as this is unclear
14663              at the moment, we decided to leave the (90) range unchanged for now. -->
14664         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
14665         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14666         <exampleNumber>90123456</exampleNumber>
14667       </premiumRate>
14668       <voip>
14669         <!-- The plan lists the following range as being assigned to TEMAS. On their homepage they
14670              say they are involved in the VoIP sector. -->
14671         <nationalNumberPattern>33200\d{4}</nationalNumberPattern>
14672         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14673         <exampleNumber>332001234</exampleNumber>
14674       </voip>
14675       <emergency>
14676         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_950.html -->
14677         <nationalNumberPattern>
14678           355|
14679           911
14680         </nationalNumberPattern>
14681         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14682         <exampleNumber>911</exampleNumber>
14683       </emergency>
14684     </territory>
14685
14686     <!-- Lesotho -->
14687     <!-- http://www.itu.int/oth/T0202000078/en -->
14688     <territory id="LS" countryCode="266" internationalPrefix="00">
14689       <availableFormats>
14690         <!-- Formatting following yellow pages: www.yellowpages.co.ls -->
14691         <numberFormat pattern="(\d{4})(\d{4})">
14692           <format>$1 $2</format>
14693         </numberFormat>
14694       </availableFormats>
14695       <generalDesc>
14696         <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
14697         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14698       </generalDesc>
14699       <fixedLine>
14700         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
14701         <exampleNumber>22123456</exampleNumber>
14702       </fixedLine>
14703       <mobile>
14704         <nationalNumberPattern>[56]\d{7}</nationalNumberPattern>
14705         <exampleNumber>50123456</exampleNumber>
14706       </mobile>
14707       <tollFree>
14708         <nationalNumberPattern>800[256]\d{4}</nationalNumberPattern>
14709         <exampleNumber>80021234</exampleNumber>
14710       </tollFree>
14711       <emergency>
14712         <!-- http://www.nul.ls/students/students_Home/emergency_Nos/
14713              http://www.voyage.gc.ca/countries_pays/report_rapport-eng.asp?id=160000 -->
14714         <nationalNumberPattern>11[257]</nationalNumberPattern>
14715         <possibleNumberPattern>\d{3}</possibleNumberPattern>
14716         <exampleNumber>112</exampleNumber>
14717       </emergency>
14718     </territory>
14719
14720     <!-- Lithuania -->
14721     <!-- http://www.itu.int/oth/T020200007C/en -->
14722     <!-- Note that Lithuania is switching to a national prefix of 0. We support
14723          both 0 and 8 when parsing until this switch is complete. -->
14724     <territory id="LT" countryCode="370" internationalPrefix="00"
14725                nationalPrefix="8" nationalPrefixForParsing="[08]"
14726                nationalPrefixFormattingRule="($NP-$FG)"
14727                nationalPrefixOptionalWhenFormatting="true">
14728       <!-- National Prefix formatting rule from www.yellowpages.lt -->
14729       <availableFormats>
14730         <!-- Two-digit area codes -->
14731         <numberFormat pattern="([34]\d)(\d{6})">
14732           <leadingDigits>
14733             37|
14734             4(?:
14735               1|
14736               5[45]|
14737               6[2-4]
14738             )
14739           </leadingDigits>
14740           <format>$1 $2</format>
14741         </numberFormat>
14742         <!-- Three-digit area codes -->
14743         <numberFormat pattern="([3-6]\d{2})(\d{5})">
14744           <leadingDigits>
14745             3[148]|
14746             4(?:
14747               [24]|
14748               6[09]
14749             )|
14750             528|
14751             6
14752           </leadingDigits>
14753           <format>$1 $2</format>
14754         </numberFormat>
14755         <numberFormat pattern="([7-9]\d{2})(\d{2})(\d{3})"
14756           nationalPrefixFormattingRule="$NP $FG">
14757           <leadingDigits>[7-9]</leadingDigits>
14758           <format>$1 $2 $3</format>
14759         </numberFormat>
14760         <numberFormat pattern="(5)(2\d{2})(\d{4})">
14761           <leadingDigits>52[0-79]</leadingDigits>
14762           <format>$1 $2 $3</format>
14763         </numberFormat>
14764       </availableFormats>
14765       <generalDesc>
14766         <nationalNumberPattern>[3-9]\d{7}</nationalNumberPattern>
14767         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14768       </generalDesc>
14769       <fixedLine>
14770         <nationalNumberPattern>
14771           (?:
14772             3[1478]|
14773             4[124-6]|
14774             52
14775           )\d{6}
14776         </nationalNumberPattern>
14777         <exampleNumber>31234567</exampleNumber>
14778       </fixedLine>
14779       <mobile>
14780         <nationalNumberPattern>6\d{7}</nationalNumberPattern>
14781         <exampleNumber>61234567</exampleNumber>
14782       </mobile>
14783       <tollFree>
14784         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14785         <exampleNumber>80012345</exampleNumber>
14786       </tollFree>
14787       <premiumRate>
14788         <nationalNumberPattern>
14789           9(?:
14790             0[0239]|
14791             10
14792           )\d{5}
14793         </nationalNumberPattern>
14794         <exampleNumber>90012345</exampleNumber>
14795       </premiumRate>
14796       <personalNumber>
14797         <nationalNumberPattern>700\d{5}</nationalNumberPattern>
14798         <exampleNumber>70012345</exampleNumber>
14799       </personalNumber>
14800       <sharedCost>
14801         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
14802         <exampleNumber>80812345</exampleNumber>
14803       </sharedCost>
14804       <uan>
14805         <!-- Including government service numbers here too. -->
14806         <nationalNumberPattern>70[67]\d{5}</nationalNumberPattern>
14807         <exampleNumber>70712345</exampleNumber>
14808       </uan>
14809       <emergency>
14810         <nationalNumberPattern>
14811           0(?:
14812             11?|
14813             22?|
14814             33?
14815           )|
14816           1(?:
14817             0[123]|
14818             12
14819           )
14820         </nationalNumberPattern>
14821         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
14822         <exampleNumber>112</exampleNumber>
14823       </emergency>
14824     </territory>
14825
14826     <!-- Luxembourg -->
14827     <!-- http://www.ilr.public.lu/communications_electroniques/numerotation/index.html
14828          -->
14829     <territory id="LU" countryCode="352" internationalPrefix="00"
14830                nationalPrefixForParsing="(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\d)"
14831                carrierCodeFormattingRule="$CC $FG">
14832       <availableFormats>
14833         <!-- Patterns overlap because of variable number length. -->
14834         <numberFormat pattern="(\d{2})(\d{3})">
14835           <leadingDigits>
14836             [2-5]|
14837             7[1-9]|
14838             [89](?:
14839               [1-9]|
14840               0[2-9]
14841             )
14842           </leadingDigits>
14843           <format>$1 $2</format>
14844         </numberFormat>
14845         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
14846           <leadingDigits>
14847             [2-5]|
14848             7[1-9]|
14849             [89](?:
14850               [1-9]|
14851               0[2-9]
14852             )
14853           </leadingDigits>
14854           <format>$1 $2 $3</format>
14855         </numberFormat>
14856         <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
14857           <leadingDigits>20</leadingDigits>
14858           <format>$1 $2 $3</format>
14859         </numberFormat>
14860         <!-- The pattern for 7-digit numbers starting with 20 here will never be reached - but since
14861              we want this pattern to apply for 8-digit numbers with a 20 prefix, we include 20 in
14862              the leading digits. This is also done for 9-10 digit numbers starting with 20 below.
14863              -->
14864         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,2})">
14865           <leadingDigits>
14866             2(?:
14867               [0367]|
14868               4[3-8]
14869             )
14870           </leadingDigits>
14871           <format>$1 $2 $3 $4</format>
14872         </numberFormat>
14873         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
14874           <leadingDigits>20</leadingDigits>
14875           <format>$1 $2 $3 $4</format>
14876         </numberFormat>
14877         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{1,2})">
14878           <leadingDigits>
14879             2(?:
14880               [0367]|
14881               4[3-8]
14882             )
14883           </leadingDigits>
14884           <format>$1 $2 $3 $4 $5</format>
14885         </numberFormat>
14886         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{1,4})">
14887           <leadingDigits>
14888             2(?:
14889               [12589]|
14890               4[12]
14891             )|
14892             [3-5]|
14893             7[1-9]|
14894             [89](?:
14895               [1-9]|
14896               0[2-9]
14897             )
14898           </leadingDigits>
14899           <format>$1 $2 $3 $4</format>
14900         </numberFormat>
14901         <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
14902           <leadingDigits>
14903             [89]0[01]|
14904             70
14905           </leadingDigits>
14906           <format>$1 $2 $3</format>
14907         </numberFormat>
14908         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
14909           <leadingDigits>6</leadingDigits>
14910           <format>$1 $2 $3</format>
14911         </numberFormat>
14912       </availableFormats>
14913       <generalDesc>
14914         <!-- The country-code is an impossible number prefix, so has been excluded here. This is
14915              necessary since the numbers have a variable number length. -->
14916         <nationalNumberPattern>
14917           [24-9]\d{3,10}|
14918           3(?:
14919             [0-46-9]\d{2,9}|
14920             5[013-9]\d{1,8}
14921           )
14922         </nationalNumberPattern>
14923         <possibleNumberPattern>\d{4,11}</possibleNumberPattern>
14924       </generalDesc>
14925       <fixedLine>
14926         <!-- Note that numbers starting with 2[367] can be a maximum of 10 digits - all others a
14927              maximum of 11. -->
14928         <nationalNumberPattern>
14929           (?:
14930             2(?:
14931               2\d{1,2}|
14932               3[2-9]|
14933               [67]\d|
14934               4[1-8]\d?|
14935               5[1-5]\d?|
14936               9[0-24-9]\d?
14937             )|
14938             3(?:
14939               [059][05-9]|
14940               [13]\d|
14941               [26][015-9]|
14942               4[0-26-9]|
14943               7[0-389]|
14944               8[08]
14945             )\d?|
14946             4\d{2,3}|
14947             5(?:
14948               [01458]\d|
14949               [27][0-69]|
14950               3[0-3]|
14951               [69][0-7]
14952             )\d?|
14953             7(?:
14954               1[019]|
14955               2[05-9]|
14956               3[05]|
14957               [45][07-9]|
14958               [679][089]|
14959               8[06-9]
14960             )\d?|
14961             8(?:
14962               0[2-9]|
14963               1[0-36-9]|
14964               3[3-9]|
14965               [469]9|
14966               [58][7-9]|
14967               7[89]
14968             )\d?|
14969             9(?:
14970               0[89]|
14971               2[0-49]|
14972               37|
14973               49|
14974               5[0-27-9]|
14975               7[7-9]|
14976               9[0-478]
14977             )\d?
14978           )\d{1,7}
14979         </nationalNumberPattern>
14980         <exampleNumber>27123456</exampleNumber>
14981       </fixedLine>
14982       <mobile>
14983         <nationalNumberPattern>6[269][18]\d{6}</nationalNumberPattern>
14984         <possibleNumberPattern>\d{9}</possibleNumberPattern>
14985         <exampleNumber>628123456</exampleNumber>
14986       </mobile>
14987       <tollFree>
14988         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
14989         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14990         <exampleNumber>80012345</exampleNumber>
14991       </tollFree>
14992       <premiumRate>
14993         <nationalNumberPattern>90[01]\d{5}</nationalNumberPattern>
14994         <possibleNumberPattern>\d{8}</possibleNumberPattern>
14995         <exampleNumber>90012345</exampleNumber>
14996       </premiumRate>
14997       <sharedCost>
14998         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
14999         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15000         <exampleNumber>80112345</exampleNumber>
15001       </sharedCost>
15002       <personalNumber>
15003         <nationalNumberPattern>70\d{6}</nationalNumberPattern>
15004         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15005         <exampleNumber>70123456</exampleNumber>
15006       </personalNumber>
15007       <voip>
15008         <!-- The document says the normal length will be 8 digits, but many numbers found online
15009              deviate from that. The prefixes from the following document have been added:
15010              http://www.ilr.public.lu/communications_electroniques/numerotation/plan_nat_num/numeros_geographiques_geo.pdf
15011              201 has also been added since a diallable number was found online, and it says in
15012              http://www.ilr.public.lu/communications_electroniques/decisions/2004/0479.pdf that no
15013              numbers will be issued that begin with 200, numbers beginning with 201 will be issued
15014              one at a time, and 202-209 in blocks. -->
15015         <nationalNumberPattern>
15016           20(?:
15017             1\d{5}|
15018             [2-689]\d{1,7}
15019           )
15020         </nationalNumberPattern>
15021         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
15022         <exampleNumber>20201234</exampleNumber>
15023       </voip>
15024       <emergency>
15025         <nationalNumberPattern>11[23]</nationalNumberPattern>
15026         <possibleNumberPattern>\d{3}</possibleNumberPattern>
15027         <exampleNumber>112</exampleNumber>
15028       </emergency>
15029     </territory>
15030
15031     <!-- Latvia -->
15032     <!-- http://www.itu.int/oth/T0202000076/en -->
15033     <!-- http://en.wikipedia.org/wiki/+371 -->
15034     <territory id="LV" countryCode="371" internationalPrefix="00">
15035       <availableFormats>
15036         <numberFormat pattern="([2689]\d)(\d{3})(\d{3})">
15037           <format>$1 $2 $3</format>
15038         </numberFormat>
15039       </availableFormats>
15040       <generalDesc>
15041         <nationalNumberPattern>[2689]\d{7}</nationalNumberPattern>
15042         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15043       </generalDesc>
15044       <fixedLine>
15045         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
15046         <exampleNumber>63123456</exampleNumber>
15047       </fixedLine>
15048       <mobile>
15049         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
15050         <exampleNumber>21234567</exampleNumber>
15051       </mobile>
15052       <tollFree>
15053         <nationalNumberPattern>80\d{6}</nationalNumberPattern>
15054         <exampleNumber>80123456</exampleNumber>
15055       </tollFree>
15056       <premiumRate>
15057         <nationalNumberPattern>90\d{6}</nationalNumberPattern>
15058         <exampleNumber>90123456</exampleNumber>
15059       </premiumRate>
15060       <sharedCost>
15061         <nationalNumberPattern>81\d{6}</nationalNumberPattern>
15062         <exampleNumber>81123456</exampleNumber>
15063       </sharedCost>
15064       <emergency>
15065         <nationalNumberPattern>
15066           0[123]|
15067           112
15068         </nationalNumberPattern>
15069         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
15070         <exampleNumber>112</exampleNumber>
15071       </emergency>
15072     </territory>
15073
15074     <!-- Libya (Soc. People’s Libyan Arab Jamahiriya) -->
15075     <!-- Status as of 21 Jan 2011: a lot of outdated information on the web including on wikipedia
15076          and itu.int. The new area codes are on the Arabic website of the main telecommunication
15077          operator (Hatef Libya). A new mobile operator Aljeel Aljadeed for Technology will start
15078          using 096 (they are allowing customers to register numbers currently), so their code has
15079          also been added. -->
15080     <!-- http://hlc.ly/price.php -->
15081     <territory id="LY" countryCode="218" internationalPrefix="00"
15082                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15083       <availableFormats>
15084         <numberFormat pattern="([25679]\d)(\d{7})">
15085           <format>$1-$2</format>
15086         </numberFormat>
15087       </availableFormats>
15088       <generalDesc>
15089         <nationalNumberPattern>[25679]\d{8}</nationalNumberPattern>
15090         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15091       </generalDesc>
15092       <fixedLine>
15093         <nationalNumberPattern>
15094           (?:
15095             2[1345]|
15096             5[1347]|
15097             6[123479]|
15098             71
15099           )\d{7}
15100         </nationalNumberPattern>
15101         <exampleNumber>212345678</exampleNumber>
15102       </fixedLine>
15103       <mobile>
15104         <!-- The prefix 094 has been added on the strength of numbers found online, and numbers
15105              where SMS messages have been apparently successfully received. -->
15106         <nationalNumberPattern>9[1-6]\d{7}</nationalNumberPattern>
15107         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15108         <exampleNumber>912345678</exampleNumber>
15109       </mobile>
15110       <emergency>
15111         <!-- This information may or may not apply to the new government. -->
15112         <!-- Most of the gov.ly domain is down (checked on 2011-11-07). -->
15113         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_951.html -->
15114         <!-- http://www.lookoutlibya.com/Look_Out_Libya_%7C_Health_and_Safety_03.html -->
15115         <nationalNumberPattern>19[013]</nationalNumberPattern>
15116         <possibleNumberPattern>\d{3}</possibleNumberPattern>
15117         <exampleNumber>193</exampleNumber>
15118       </emergency>
15119     </territory>
15120
15121     <!-- Morocco -->
15122     <!-- Shares formatting and some metadata with Western Sahara. -->
15123     <!-- http://www.itu.int/oth/T0202000090/en -->
15124     <!-- http://en.wikipedia.org/wiki/+212 -->
15125     <territory id="MA" countryCode="212" internationalPrefix="00" nationalPrefix="0"
15126                nationalPrefixFormattingRule="$NP$FG" mainCountryForCode="true">
15127       <availableFormats>
15128         <numberFormat pattern="([56]\d{2})(\d{6})">
15129           <leadingDigits>
15130             5(?:
15131               2[015-7]|
15132               3[0-4]
15133             )|
15134             6
15135           </leadingDigits>
15136           <format>$1-$2</format>
15137         </numberFormat>
15138         <numberFormat pattern="([58]\d{3})(\d{5})">
15139           <leadingDigits>
15140             5(?:
15141               2[2-489]|
15142               3[5-9]
15143             )|
15144             892
15145           </leadingDigits>
15146           <leadingDigits>
15147             5(?:
15148               2(?:
15149                 [2-48]|
15150                 90
15151               )|
15152               3(?:
15153                 [5-79]|
15154                 80
15155               )
15156             )|
15157             892
15158           </leadingDigits>
15159           <format>$1-$2</format>
15160         </numberFormat>
15161         <numberFormat pattern="(5\d{4})(\d{4})">
15162           <leadingDigits>
15163             5(?:
15164               29|
15165               38
15166             )
15167           </leadingDigits>
15168           <leadingDigits>
15169             5(?:
15170               29|
15171               38
15172             )[89]
15173           </leadingDigits>
15174           <format>$1-$2</format>
15175         </numberFormat>
15176         <numberFormat pattern="(8[09])(\d{7})">
15177           <leadingDigits>
15178             8(?:
15179               0|
15180               9[013-9]
15181             )
15182           </leadingDigits>
15183           <format>$1-$2</format>
15184         </numberFormat>
15185       </availableFormats>
15186       <generalDesc>
15187         <nationalNumberPattern>[5689]\d{8}</nationalNumberPattern>
15188         <!-- Closed numbering plan. -->
15189         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15190       </generalDesc>
15191       <fixedLine>
15192         <nationalNumberPattern>
15193           5(?:
15194             2(?:
15195               (?:
15196                 [015-7]\d|
15197                 2[2-9]|
15198                 3[2-57]|
15199                 4[2-8]|
15200                 8[235-7]
15201               )\d|
15202               9(?:
15203                 0\d|
15204                 [89]0
15205               )
15206             )|
15207             3(?:
15208               (?:
15209                 [0-4]\d|
15210                 [57][2-9]|
15211                 6[235-8]|
15212                 9[3-9]
15213               )\d|
15214               8(?:
15215                 0\d|
15216                 [89]0
15217               )
15218             )
15219           )\d{4}
15220         </nationalNumberPattern>
15221         <exampleNumber>520123456</exampleNumber>
15222       </fixedLine>
15223       <!-- Also duplicated in Western Sahara, please ensure you update both. -->
15224       <mobile>
15225         <!-- Prefixes 60[1-578], 62[01457-9], 63[04-8] and 68[01] are from numbers found online,
15226              bug-reports, and information provided directly by the carriers. -->
15227         <nationalNumberPattern>
15228           6(?:
15229             0[0-8]|
15230             [124-7]\d|
15231             3[013-8]|
15232             8[01]|
15233             99
15234           )\d{6}
15235         </nationalNumberPattern>
15236         <exampleNumber>650123456</exampleNumber>
15237       </mobile>
15238       <tollFree>
15239         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
15240         <exampleNumber>801234567</exampleNumber>
15241       </tollFree>
15242       <premiumRate>
15243         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
15244         <exampleNumber>891234567</exampleNumber>
15245       </premiumRate>
15246       <emergency>
15247         <nationalNumberPattern>
15248           1(?:
15249             [59]|
15250             77
15251           )
15252         </nationalNumberPattern>
15253         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
15254         <exampleNumber>15</exampleNumber>
15255       </emergency>
15256     </territory>
15257
15258     <!-- Monaco -->
15259     <!-- http://www.itu.int/oth/T020200008D/en -->
15260     <!-- We support Kosovo mobile numbers (044, 045) with a Monaco country-code here, as we do not
15261          support Kosovo at the moment. Kosovo seems to use a variety of country codes currently. It
15262          also seems that the national prefix is only used for mobile numbers, not fixed-line. -->
15263     <territory id="MC" countryCode="377" internationalPrefix="00"
15264                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15265       <availableFormats>
15266         <!-- Following formatting found online rather than in the ITU document example. -->
15267         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
15268           <leadingDigits>[89]</leadingDigits>
15269           <format>$1 $2 $3 $4</format>
15270         </numberFormat>
15271         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15272           <leadingDigits>4</leadingDigits>
15273           <format>$1 $2 $3</format>
15274         </numberFormat>
15275         <numberFormat pattern="(6)(\d{2})(\d{2})(\d{2})(\d{2})">
15276           <leadingDigits>6</leadingDigits>
15277           <format>$1 $2 $3 $4 $5</format>
15278         </numberFormat>
15279       </availableFormats>
15280       <generalDesc>
15281         <nationalNumberPattern>[4689]\d{7,8}</nationalNumberPattern>
15282         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15283       </generalDesc>
15284       <noInternationalDialling>
15285         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
15286         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15287       </noInternationalDialling>
15288       <fixedLine>
15289         <!-- Restricted to this as no numbers with the prefix of 91, 95 or 96 have been found. -->
15290         <nationalNumberPattern>9[2-47-9]\d{6}</nationalNumberPattern>
15291         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15292         <exampleNumber>99123456</exampleNumber>
15293       </fixedLine>
15294       <mobile>
15295         <!-- 4X mobile numbers are actually used by Kosovo. -->
15296         <nationalNumberPattern>
15297           6\d{8}|
15298           4\d{7}
15299         </nationalNumberPattern>
15300         <exampleNumber>612345678</exampleNumber>
15301       </mobile>
15302       <tollFree>
15303         <nationalNumberPattern>
15304           (?:
15305             8\d|
15306             90
15307           )\d{6}
15308         </nationalNumberPattern>
15309         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15310         <exampleNumber>90123456</exampleNumber>
15311       </tollFree>
15312       <emergency>
15313         <nationalNumberPattern>
15314           1(?:
15315             12|
15316             [578]
15317           )
15318         </nationalNumberPattern>
15319         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
15320         <exampleNumber>112</exampleNumber>
15321       </emergency>
15322     </territory>
15323
15324     <!-- Moldova, Rep. of -->
15325     <!-- http://www.itu.int/oth/T020200008C/en -->
15326     <!-- http://en.anrceti.md -->
15327     <territory id="MD" countryCode="373" internationalPrefix="00"
15328                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG" >
15329       <availableFormats>
15330         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15331           <leadingDigits>
15332             22|
15333             3
15334           </leadingDigits>
15335           <format>$1 $2 $3</format>
15336         </numberFormat>
15337         <numberFormat pattern="([25-7]\d{2})(\d{2})(\d{3})">
15338           <leadingDigits>
15339             2[13-79]|
15340             [5-7]
15341           </leadingDigits>
15342           <format>$1 $2 $3</format>
15343         </numberFormat>
15344         <numberFormat pattern="([89]\d{2})(\d{5})">
15345           <leadingDigits>[89]</leadingDigits>
15346           <format>$1 $2</format>
15347         </numberFormat>
15348       </availableFormats>
15349       <generalDesc>
15350         <nationalNumberPattern>[235-9]\d{7}</nationalNumberPattern>
15351         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15352       </generalDesc>
15353       <fixedLine>
15354         <nationalNumberPattern>
15355           (?:
15356             2(?:
15357               1[0569]|
15358               2\d|
15359               3[015-7]|
15360               4[1-46-9]|
15361               5[0-24689]|
15362               6[2-589]|
15363               7[1-37]|
15364               9[1347-9]
15365             )|
15366             5(?:
15367               33|
15368               5[257]
15369             )
15370           )\d{5}
15371         </nationalNumberPattern>
15372         <exampleNumber>22212345</exampleNumber>
15373       </fixedLine>
15374       <mobile>
15375         <!-- Includes prefixes for Interdnestrcom, http://www.idknet.com/. -->
15376         <nationalNumberPattern>
15377           (?:
15378             562|
15379             6(?:
15380               50|
15381               7[1-6]|
15382               [089]\d
15383             )|
15384             7(?:
15385               67|
15386               7[47-9]|
15387               [89]\d
15388             )
15389           )\d{5}
15390         </nationalNumberPattern>
15391         <exampleNumber>65012345</exampleNumber>
15392       </mobile>
15393       <tollFree>
15394         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15395         <exampleNumber>80012345</exampleNumber>
15396       </tollFree>
15397       <premiumRate>
15398         <nationalNumberPattern>90[056]\d{5}</nationalNumberPattern>
15399         <exampleNumber>90012345</exampleNumber>
15400       </premiumRate>
15401       <!-- Information came from en.anrceti.md/node/81 -->
15402       <sharedCost>
15403         <nationalNumberPattern>808\d{5}</nationalNumberPattern>
15404         <exampleNumber>80812345</exampleNumber>
15405       </sharedCost>
15406       <uan>
15407         <!-- Includes numbers used for access to different transport directory services of general
15408              interest, since these are charged at the same rate as fixed-line numbers. -->
15409         <nationalNumberPattern>
15410           8(?:
15411             03|
15412             14
15413           )\d{5}
15414         </nationalNumberPattern>
15415         <exampleNumber>80312345</exampleNumber>
15416       </uan>
15417       <voip>
15418         <!-- Used for "nomadic numbers". -->
15419         <nationalNumberPattern>3[08]\d{6}</nationalNumberPattern>
15420         <exampleNumber>30123456</exampleNumber>
15421       </voip>
15422       <emergency>
15423         <nationalNumberPattern>
15424           112|
15425           90[123]
15426         </nationalNumberPattern>
15427         <possibleNumberPattern>\d{3}</possibleNumberPattern>
15428         <exampleNumber>112</exampleNumber>
15429       </emergency>
15430     </territory>
15431
15432     <!-- Montenegro -->
15433     <!-- http://www.itu.int/oth/T02020000DA/en -->
15434     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Montenegro -->
15435     <!-- http://www.ekip.me/numeracija/dodijeljena.php -->
15436     <territory id="ME" countryCode="382" internationalPrefix="00" nationalPrefix="0"
15437                nationalPrefixFormattingRule="$NP$FG">
15438       <availableFormats>
15439          <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
15440           <leadingDigits>[2-57-9]|6[3789]</leadingDigits>
15441           <leadingDigits>
15442             [2-57-9]|
15443             6(?:
15444               [389]|
15445               7(?:
15446                 [0-8]|
15447                 9[3-9]
15448               )
15449             )
15450           </leadingDigits>
15451           <format>$1 $2 $3</format>
15452         </numberFormat>
15453         <numberFormat pattern="(67)(9)(\d{3})(\d{3})">
15454           <leadingDigits>679</leadingDigits>
15455           <leadingDigits>679[0-2]</leadingDigits>
15456           <format>$1 $2 $3 $4</format>
15457         </numberFormat>
15458       </availableFormats>
15459       <generalDesc>
15460         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
15461         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
15462       </generalDesc>
15463       <fixedLine>
15464         <!-- Fixed line numbers have prefix 20,30,31,32,33,40,41,50,51,52 followed by 6 digits.
15465              The valid options for the third digit were from
15466              http://www.ekip.me/numeracija/dodijeljena.php -->
15467         <nationalNumberPattern>
15468           (?:
15469             20[2-8]|
15470             3(?:
15471               0[2-7]|
15472               1[35-7]|
15473               2[3567]|
15474               3[4-7]
15475             )|
15476             4(?:
15477               0[237]|
15478               1[27]
15479             )|
15480             5(?:
15481               0[47]|
15482               1[27]|
15483               2[378]
15484             )
15485           )\d{5}
15486         </nationalNumberPattern>
15487         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15488         <exampleNumber>30234567</exampleNumber>
15489       </fixedLine>
15490       <mobile>
15491         <!-- Mobile numbers start with 632, 67, 68 or 69. -->
15492         <nationalNumberPattern>
15493           6(?:
15494             32\d|
15495             [89]\d{2}|
15496             7(?:
15497               [0-8]\d|
15498               9(?:
15499                 [3-9]|
15500                 [0-2]\d
15501               )
15502             )
15503           )\d{4}
15504         </nationalNumberPattern>
15505         <!-- According to ITU it is possible for the numbers to be between length 4-12
15506              (http://www.itu.int/oth/T02020000DA/en). However, in reality they seem to be 8 or 9
15507              digits long, based on the Montenegro document. -->
15508         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
15509         <exampleNumber>67622901</exampleNumber>
15510       </mobile>
15511       <tollFree>
15512         <!-- All toll free numbers have prefix 80 followed by 02 or 08. -->
15513         <nationalNumberPattern>800[28]\d{4}</nationalNumberPattern>
15514         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15515         <exampleNumber>80080002</exampleNumber>
15516       </tollFree>
15517       <premiumRate>
15518         <!-- Numbers with prefix 88, 94 or 95 are services with additional charges. -->
15519         <nationalNumberPattern>
15520           (?:
15521             88\d|
15522             9(?:
15523               4[13-8]|
15524               5[16-8]
15525             )
15526           )\d{5}
15527         </nationalNumberPattern>
15528         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15529         <exampleNumber>94515151</exampleNumber>
15530       </premiumRate>
15531       <voip>
15532         <!-- VOIP are prefixed with 78. -->
15533         <nationalNumberPattern>78[1-9]\d{5}</nationalNumberPattern>
15534         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15535         <exampleNumber>78108780</exampleNumber>
15536       </voip>
15537       <uan>
15538         <!-- Corporate Telephony are prefixed with 77. -->
15539         <nationalNumberPattern>77\d{6}</nationalNumberPattern>
15540         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15541         <exampleNumber>77273012</exampleNumber>
15542       </uan>
15543       <emergency>
15544         <nationalNumberPattern>
15545           1(?:
15546             12|
15547             2[234]
15548           )
15549         </nationalNumberPattern>
15550         <possibleNumberPattern>\d{3}</possibleNumberPattern>
15551         <exampleNumber>112</exampleNumber>
15552       </emergency>
15553     </territory>
15554
15555     <!-- Madagascar -->
15556     <!-- http://www.itu.int/oth/T020200007F/en -->
15557     <territory id="MG" countryCode="261" internationalPrefix="00"
15558                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15559       <availableFormats>
15560         <numberFormat pattern="([23]\d)(\d{2})(\d{3})(\d{2})">
15561           <format>$1 $2 $3 $4</format>
15562         </numberFormat>
15563       </availableFormats>
15564       <generalDesc>
15565         <nationalNumberPattern>[23]\d{8}</nationalNumberPattern>
15566         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
15567       </generalDesc>
15568       <fixedLine>
15569         <!-- Added the prefixes 20 44 and 20 47 as they seem popular on the internet - the plan says
15570              20 4 is for the rest of the province of Antanarivo, but then fails to mention any area
15571              codes beginning with 4. -->
15572         <nationalNumberPattern>
15573           20(?:
15574             2\d{2}|
15575             4[47]\d|
15576             5[3467]\d|
15577             6[279]\d|
15578             7(?:
15579               2[29]|
15580               [35]\d
15581             )|
15582             8[268]\d|
15583             9[245]\d
15584           )\d{4}
15585         </nationalNumberPattern>
15586         <exampleNumber>202123456</exampleNumber>
15587       </fixedLine>
15588       <mobile>
15589         <!-- The numbering plan suggests the third digit, Z, should be 24-9, but this is not borne
15590              out by reality. -->
15591         <nationalNumberPattern>
15592           3(?:
15593             [02-4]\d|
15594             90
15595           )\d{6}
15596         </nationalNumberPattern>
15597         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15598         <exampleNumber>301234567</exampleNumber>
15599       </mobile>
15600       <!-- Putting VSAT numbers here. -->
15601       <voip>
15602         <nationalNumberPattern>22\d{7}</nationalNumberPattern>
15603         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15604         <exampleNumber>221234567</exampleNumber>
15605       </voip>
15606       <emergency>
15607         <!-- http://www.commerce.gov.mg/index.php/infos-services -->
15608         <nationalNumberPattern>11?[78]</nationalNumberPattern>
15609         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
15610         <exampleNumber>117</exampleNumber>
15611       </emergency>
15612     </territory>
15613
15614     <!-- Saint-Martin, French Antilles -->
15615     <!-- http://www.itu.int/oth/T0202000058/en -->
15616     <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls -->
15617     <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0">
15618       <!-- Formatting rules borrowed from Guadeloupe. -->
15619       <generalDesc>
15620         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
15621         <possibleNumberPattern>\d{9}</possibleNumberPattern>
15622       </generalDesc>
15623       <fixedLine>
15624         <nationalNumberPattern>
15625           590(?:
15626             [02][79]|
15627             13|
15628             5[0-268]|
15629             [78]7
15630           )\d{4}
15631         </nationalNumberPattern>
15632         <exampleNumber>590271234</exampleNumber>
15633       </fixedLine>
15634       <mobile>
15635         <!-- Any ranges assigned from
15636              http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to
15637              Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between
15638              them. -->
15639         <nationalNumberPattern>
15640           690(?:
15641             0[0-7]|
15642             [1-9]\d
15643           )\d{4}
15644         </nationalNumberPattern>
15645         <exampleNumber>690301234</exampleNumber>
15646       </mobile>
15647       <!-- http://www.leshotelsdesaintmartin.com/fr/saint-martin-antilles/informations-saint-martin/infos-pratiques-sxm.html -->
15648       <emergency>
15649         <nationalNumberPattern>1[578]</nationalNumberPattern>
15650         <possibleNumberPattern>\d{2}</possibleNumberPattern>
15651         <exampleNumber>18</exampleNumber>
15652       </emergency>
15653     </territory>
15654
15655     <!-- Marshall Islands -->
15656     <!-- http://www.itu.int/oth/T0202000085/en -->
15657     <territory id="MH" countryCode="692" internationalPrefix="011" nationalPrefix="1">
15658       <availableFormats>
15659         <numberFormat pattern="(\d{3})(\d{4})">
15660           <format>$1-$2</format>
15661         </numberFormat>
15662       </availableFormats>
15663       <generalDesc>
15664         <nationalNumberPattern>[2-6]\d{6}</nationalNumberPattern>
15665         <possibleNumberPattern>\d{7}</possibleNumberPattern>
15666       </generalDesc>
15667       <fixedLine>
15668         <nationalNumberPattern>
15669           (?:
15670             247|
15671             528|
15672             625
15673           )\d{4}
15674         </nationalNumberPattern>
15675         <exampleNumber>2471234</exampleNumber>
15676       </fixedLine>
15677       <mobile>
15678         <nationalNumberPattern>
15679           (?:
15680             235|
15681             329|
15682             45[56]|
15683             545
15684           )\d{4}
15685         </nationalNumberPattern>
15686         <exampleNumber>2351234</exampleNumber>
15687       </mobile>
15688       <voip>
15689         <!-- VSAT prefixes are here. -->
15690         <nationalNumberPattern>635\d{4}</nationalNumberPattern>
15691         <exampleNumber>6351234</exampleNumber>
15692       </voip>
15693       <!-- Only fixed-line numbers (625 4111 and 625 8666) can be found instead of short Emergency
15694            numbers. -->
15695     </territory>
15696
15697     <!-- Macedonia, Former Yugoslav Rep. of -->
15698     <!-- http://www.itu.int/oth/T02020000CE/en -->
15699     <territory id="MK" countryCode="389" internationalPrefix="00"
15700                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
15701       <availableFormats>
15702         <!-- Formats follow wikipedia. -->
15703         <numberFormat pattern="(2)(\d{3})(\d{4})">
15704           <leadingDigits>2</leadingDigits>
15705           <format>$1 $2 $3</format>
15706         </numberFormat>
15707         <numberFormat pattern="([347]\d)(\d{3})(\d{3})">
15708           <leadingDigits>[347]</leadingDigits>
15709           <format>$1 $2 $3</format>
15710         </numberFormat>
15711         <numberFormat pattern="([58]\d{2})(\d)(\d{2})(\d{2})">
15712           <leadingDigits>[58]</leadingDigits>
15713           <format>$1 $2 $3 $4</format>
15714         </numberFormat>
15715       </availableFormats>
15716       <generalDesc>
15717         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
15718         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15719       </generalDesc>
15720       <fixedLine>
15721         <nationalNumberPattern>
15722           (?:
15723             2(?:
15724               [23]\d|
15725               5[124578]|
15726               6[01]
15727             )|
15728             3(?:
15729               1[3-6]|
15730               [23][2-6]|
15731               4[2356]
15732             )|
15733             4(?:
15734               [23][2-6]|
15735               4[3-6]|
15736               5[256]|
15737               6[25-8]|
15738               7[24-6]|
15739               8[4-6]
15740             )
15741           )\d{5}
15742         </nationalNumberPattern>
15743         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
15744         <exampleNumber>22212345</exampleNumber>
15745       </fixedLine>
15746       <mobile>
15747         <nationalNumberPattern>
15748           7(?:
15749             [0-25-8]\d|
15750             33
15751           )\d{5}</nationalNumberPattern>
15752         <exampleNumber>72345678</exampleNumber>
15753       </mobile>
15754       <tollFree>
15755         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15756         <exampleNumber>80012345</exampleNumber>
15757       </tollFree>
15758       <premiumRate>
15759         <nationalNumberPattern>5[02-9]\d{6}</nationalNumberPattern>
15760         <exampleNumber>50012345</exampleNumber>
15761       </premiumRate>
15762       <sharedCost>
15763         <nationalNumberPattern>
15764           8(?:
15765             0[1-9]|
15766             [1-9]\d
15767           )\d{5}
15768         </nationalNumberPattern>
15769         <exampleNumber>80123456</exampleNumber>
15770       </sharedCost>
15771       <emergency>
15772         <nationalNumberPattern>
15773           1(?:
15774             12|
15775             9[234]
15776           )
15777         </nationalNumberPattern>
15778         <possibleNumberPattern>\d{3}</possibleNumberPattern>
15779         <exampleNumber>112</exampleNumber>
15780       </emergency>
15781     </territory>
15782
15783     <!-- Mali -->
15784     <!-- http://www.itu.int/oth/T0202000083/en -->
15785     <!-- http://crt-mali.org/pdf/plan_num -->
15786     <territory id="ML" countryCode="223" internationalPrefix="00">
15787       <availableFormats>
15788         <numberFormat pattern="([246-8]\d)(\d{2})(\d{2})(\d{2})">
15789           <format>$1 $2 $3 $4</format>
15790         </numberFormat>
15791       </availableFormats>
15792       <generalDesc>
15793         <nationalNumberPattern>[246-8]\d{7}</nationalNumberPattern>
15794         <possibleNumberPattern>\d{8}</possibleNumberPattern>
15795       </generalDesc>
15796       <fixedLine>
15797         <!-- 21 25 seems a common pattern based on online searches. -->
15798         <nationalNumberPattern>
15799           (?:
15800             2(?:
15801               0(?:
15802                 2[0-589]|
15803                 7[027-9]
15804               )|
15805               1(?:
15806                 2[5-7]|
15807                 [3-689]\d
15808               )
15809             )|
15810             44[239]\d
15811           )\d{4}
15812         </nationalNumberPattern>
15813         <exampleNumber>20212345</exampleNumber>
15814       </fixedLine>
15815       <mobile>
15816         <!-- Orange Mali have updated their numbering plan, though this is not reflected in the ITU
15817              document (which is very stale). All mobile numbers starting with 7 are now Orange.
15818              Includes 6x from Malitel IR21. -->
15819         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
15820         <exampleNumber>65012345</exampleNumber>
15821       </mobile>
15822       <tollFree>
15823         <!-- Online examples have not been found, but this seems to follow the prescriptions in the
15824              plan. -->
15825         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
15826         <exampleNumber>80012345</exampleNumber>
15827       </tollFree>
15828       <emergency>
15829         <nationalNumberPattern>1[578]</nationalNumberPattern>
15830         <possibleNumberPattern>\d{2}</possibleNumberPattern>
15831         <exampleNumber>17</exampleNumber>
15832       </emergency>
15833    </territory>
15834
15835     <!-- Myanmar -->
15836     <!-- http://www.itu.int/oth/T0202000092/en -->
15837     <territory id="MM" countryCode="95" internationalPrefix="00" nationalPrefix="0"
15838                nationalPrefixFormattingRule="$NP$FG">
15839       <availableFormats>
15840         <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
15841           <leadingDigits>
15842             1|
15843             2[45]
15844           </leadingDigits>
15845           <format>$1 $2 $3</format>
15846         </numberFormat>
15847         <numberFormat pattern="(2)(\d{4})(\d{4})">
15848           <leadingDigits>251</leadingDigits>
15849           <format>$1 $2 $3</format>
15850         </numberFormat>
15851         <numberFormat pattern="(\d)(\d{2})(\d{3})">
15852           <leadingDigits>
15853             16|
15854             2
15855           </leadingDigits>
15856           <format>$1 $2 $3</format>
15857         </numberFormat>
15858         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
15859           <leadingDigits>
15860             67|
15861             81
15862           </leadingDigits>
15863           <format>$1 $2 $3</format>
15864         </numberFormat>
15865         <numberFormat pattern="(\d{2})(\d{2})(\d{3,4})">
15866           <leadingDigits>[4-8]</leadingDigits>
15867           <format>$1 $2 $3</format>
15868         </numberFormat>
15869         <numberFormat pattern="(9)(\d{3})(\d{4,5})">
15870           <leadingDigits>
15871             9(?:
15872               [235-9]|
15873               4[13789]
15874             )
15875           </leadingDigits>
15876           <format>$1 $2 $3</format>
15877         </numberFormat>
15878         <numberFormat pattern="(9)(4\d{4})(\d{4})">
15879           <leadingDigits>94[0245]</leadingDigits>
15880           <format>$1 $2 $3</format>
15881         </numberFormat>
15882       </availableFormats>
15883       <generalDesc>
15884         <nationalNumberPattern>
15885           [14578]\d{5,7}|
15886           [26]\d{5,8}|
15887           9(?:
15888             [258]|
15889             3\d|
15890             4\d{1,2}|
15891             [679]\d?
15892           )\d{6}
15893         </nationalNumberPattern>
15894         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
15895       </generalDesc>
15896       <fixedLine>
15897         <nationalNumberPattern>
15898           1(?:
15899             2\d{1,2}|
15900             [3-5]\d|
15901             6\d?|
15902             [89][0-6]\d
15903           )\d{4}|
15904           2(?:
15905             [236-9]\d{4}|
15906             4(?:
15907               0\d{5}|
15908               \d{4}
15909             )|
15910             5(?:
15911               1\d{3,6}|
15912               [02-9]\d{3,5}
15913             )
15914           )|
15915           4(?:
15916             2[245-8]|
15917             [346][2-6]|
15918             5[3-5]
15919           )\d{4}|
15920           5(?:
15921             2(?:
15922               20?|
15923               [3-8]
15924             )|
15925             3[2-68]|
15926             4(?:
15927               21?|
15928               [4-8]
15929             )|
15930             5[23]|
15931             6[2-4]|
15932             7[2-8]|
15933             8[24-7]|
15934             9[2-7]
15935           )\d{4}|
15936           6(?:
15937             0[23]|
15938             1[2356]|
15939             [24][2-6]|
15940             3[24-6]|
15941             5[2-4]|
15942             6[2-8]|
15943             7(?:
15944               [2367]|
15945               4\d|
15946               5\d?|
15947               8[145]\d
15948             )|
15949             8[245]|
15950             9[24]
15951           )\d{4}|
15952           7(?:
15953             [04][24-8]|
15954             [15][2-7]|
15955             22|
15956             3[2-4]
15957           )\d{4}|
15958           8(?:
15959             1(?:
15960               2\d?|
15961               [3-689]
15962             )|
15963             2[2-8]|
15964             3[24]|
15965             4[24-7]|
15966             5[245]|
15967             6[23]
15968           )\d{4}
15969         </nationalNumberPattern>
15970         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
15971         <exampleNumber>1234567</exampleNumber>
15972       </fixedLine>
15973       <mobile>
15974         <!-- Adding 99[089] (8 digits) from numbers found online, and 961 with 9 digits. -->
15975         <nationalNumberPattern>
15976           17[01]\d{4}|
15977           9(?:
15978             2[0-4]|
15979             3[136]\d|
15980             4(?:
15981               0[0-4]\d|
15982               [1379]\d|
15983               [24][0-589]\d|
15984               5\d{2}|
15985               88
15986             )|
15987             5[0-6]|
15988             61?\d|
15989             73\d|
15990             8\d|
15991             9(?:
15992               1\d|
15993               [089]
15994             )
15995           )\d{5}
15996         </nationalNumberPattern>
15997         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
15998         <exampleNumber>92123456</exampleNumber>
15999       </mobile>
16000       <voip>
16001         <nationalNumberPattern>1333\d{4}</nationalNumberPattern>
16002         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16003         <exampleNumber>13331234</exampleNumber>
16004       </voip>
16005       <!-- No information on other types of phone numbers for Myanmar has been found. -->
16006       <emergency>
16007         <nationalNumberPattern>199</nationalNumberPattern>
16008         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16009         <exampleNumber>199</exampleNumber>
16010       </emergency>
16011     </territory>
16012
16013     <!-- Mongolia -->
16014     <!-- http://www.itu.int/oth/T020200008E/en -->
16015     <territory id="MN" countryCode="976" internationalPrefix="001"
16016                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16017       <availableFormats>
16018         <numberFormat pattern="([12]\d)(\d{2})(\d{4})">
16019           <leadingDigits>[12]1</leadingDigits>
16020           <format>$1 $2 $3</format>
16021         </numberFormat>
16022         <numberFormat pattern="([12]2\d)(\d{5,6})">
16023           <leadingDigits>[12]2[1-3]</leadingDigits>
16024           <format>$1 $2</format>
16025         </numberFormat>
16026         <numberFormat pattern="([12]\d{3})(\d{5})">
16027           <leadingDigits>
16028             [12](?:
16029               27|
16030               [3-5]
16031             )
16032           </leadingDigits>
16033           <leadingDigits>
16034             [12](?:
16035               27|
16036               [3-5]\d
16037             )2
16038           </leadingDigits>
16039           <format>$1 $2</format>
16040         </numberFormat>
16041         <!-- It seems from online formatting that the national prefix is not written (or perhaps
16042              needed?) for numbers in these ranges. -->
16043         <numberFormat pattern="(\d{4})(\d{4})"
16044           nationalPrefixFormattingRule="$FG">
16045           <leadingDigits>[57-9]</leadingDigits>
16046           <format>$1 $2</format>
16047         </numberFormat>
16048         <numberFormat pattern="([12]\d{4})(\d{4,5})">
16049           <leadingDigits>
16050             [12](?:
16051               27|
16052               [3-5]
16053             )
16054           </leadingDigits>
16055           <leadingDigits>
16056             [12](?:
16057               27|
16058               [3-5]\d
16059             )[4-9]
16060           </leadingDigits>
16061           <format>$1 $2</format>
16062         </numberFormat>
16063       </availableFormats>
16064       <generalDesc>
16065         <nationalNumberPattern>
16066           [12]\d{7,9}|
16067           [57-9]\d{7}
16068         </nationalNumberPattern>
16069         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
16070       </generalDesc>
16071       <fixedLine>
16072         <!-- Note the leading digit is the access code: 1 is used by Mongolia Telecom subscribers
16073              and 2 is used by Mongolian Railway subscribers. The area code then follows the access
16074              code, and could be 1 to 4 digits long. We also cover wireless local loop numbers here
16075              as well, even though we are not certain whether they are in fact fixed or mobile in
16076              this country. 5-digit subscriber numbers for 4-digit area codes have been added due to
16077              online numbers being found. -->
16078         <nationalNumberPattern>
16079           [12](?:
16080             1\d|
16081             2(?:
16082               [1-3]\d?|
16083               7\d
16084             )|
16085             3[2-8]\d{1,2}|
16086             4[2-68]\d{1,2}|
16087             5[1-4689]\d{1,2}
16088           )\d{5}|
16089           5[0568]\d{6}
16090         </nationalNumberPattern>
16091         <exampleNumber>50123456</exampleNumber>
16092       </fixedLine>
16093       <mobile>
16094         <nationalNumberPattern>
16095           (?:
16096             8[89]|
16097             9[013-9]
16098           )\d{6}
16099         </nationalNumberPattern>
16100         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16101         <exampleNumber>88123456</exampleNumber>
16102       </mobile>
16103       <!-- No tollFree or premiumRate information can be found. -->
16104       <voip>
16105         <!-- According to the document this could be stricter, but there are counter examples
16106              online. -->
16107         <nationalNumberPattern>7[05-8]\d{6}</nationalNumberPattern>
16108         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16109         <exampleNumber>75123456</exampleNumber>
16110       </voip>
16111       <emergency>
16112         <nationalNumberPattern>10[0-3]</nationalNumberPattern>
16113         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16114         <exampleNumber>102</exampleNumber>
16115       </emergency>
16116     </territory>
16117
16118     <!-- Macao, China -->
16119     <!-- http://www.itu.int/oth/T020200007E/en -->
16120     <territory id="MO" countryCode="853" internationalPrefix="00">
16121       <availableFormats>
16122         <numberFormat pattern="([268]\d{3})(\d{4})">
16123           <format>$1 $2</format>
16124         </numberFormat>
16125       </availableFormats>
16126       <generalDesc>
16127         <nationalNumberPattern>[268]\d{7}</nationalNumberPattern>
16128         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16129       </generalDesc>
16130       <fixedLine>
16131         <nationalNumberPattern>
16132           (?:
16133             28[2-57-9]|
16134             8[2-57-9]\d
16135           )\d{5}
16136         </nationalNumberPattern>
16137         <exampleNumber>28212345</exampleNumber>
16138       </fixedLine>
16139       <mobile>
16140         <!-- The 6[23] prefixes are added as SMS messages have been successfully delivered to these
16141              numbers, and they are also widely present on the Internet. -->
16142         <nationalNumberPattern>6[236]\d{6}</nationalNumberPattern>
16143         <exampleNumber>66123456</exampleNumber>
16144       </mobile>
16145       <!-- No tollFree or premiumRate information can be found. -->
16146       <emergency>
16147         <nationalNumberPattern>999</nationalNumberPattern>
16148         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16149         <exampleNumber>999</exampleNumber>
16150       </emergency>
16151     </territory>
16152
16153     <!--  Northern Mariana Islands -->
16154     <!-- http://www.itu.int/oth/T02020000EE/en -->
16155     <!-- www.cnmiphonebook.com/ -->
16156     <territory id="MP" countryCode="1" leadingDigits="670" nationalPrefix="1"
16157                internationalPrefix="011">
16158       <generalDesc>
16159         <!-- NANPA country - uses US formatting rules -->
16160         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
16161         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
16162       </generalDesc>
16163       <fixedLine>
16164         <!-- Extra exchange codes 232, 289, 355, 472, 633, 637, 646, 647, 649, 653, 687, 734 and 828
16165              were seen in the white and yellow pages, but no numbers with these exchange codes have
16166              proved to be diallable so we exclude them for now.. -->
16167         <nationalNumberPattern>
16168           670(?:
16169             2(?:
16170               3[3-7]|
16171               56|
16172               8[5-8]
16173             )|
16174             32[1238]|
16175             4(?:
16176               33|
16177               8[348]
16178             )|
16179             5(?:
16180               32|
16181               55|
16182               88
16183             )|
16184             6(?:
16185               64|
16186               70|
16187               82
16188             )|
16189             78[589]|
16190             8[3-9]8|
16191             989
16192           )\d{4}
16193         </nationalNumberPattern>
16194         <exampleNumber>6702345678</exampleNumber>
16195       </fixedLine>
16196       <mobile>
16197         <nationalNumberPattern>
16198           670(?:
16199             2(?:
16200               3[3-7]|
16201               56|
16202               8[5-8]
16203             )|
16204             32[1238]|
16205             4(?:
16206               33|
16207               8[348]
16208             )|
16209             5(?:
16210               32|
16211               55|
16212               88
16213             )|
16214             6(?:
16215               64|
16216               70|
16217               82
16218             )|
16219             78[589]|
16220             8[3-9]8|
16221             989
16222           )\d{4}
16223         </nationalNumberPattern>
16224         <exampleNumber>6702345678</exampleNumber>
16225       </mobile>
16226       <tollFree>
16227         <nationalNumberPattern>
16228           8(?:
16229             00|
16230             55|
16231             66|
16232             77|
16233             88
16234           )[2-9]\d{6}
16235         </nationalNumberPattern>
16236         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16237         <exampleNumber>8002123456</exampleNumber>
16238       </tollFree>
16239       <premiumRate>
16240         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
16241         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16242         <exampleNumber>9002123456</exampleNumber>
16243       </premiumRate>
16244       <personalNumber>
16245         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
16246         <nationalNumberPattern>
16247           5(?:
16248             00|
16249             33|
16250             44
16251           )[2-9]\d{6}
16252         </nationalNumberPattern>
16253         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16254         <exampleNumber>5002345678</exampleNumber>
16255       </personalNumber>
16256       <emergency>
16257         <!-- http://www.dps.gov.mp/ -->
16258         <nationalNumberPattern>911</nationalNumberPattern>
16259         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16260         <exampleNumber>911</exampleNumber>
16261       </emergency>
16262     </territory>
16263
16264     <!-- Martinique (French Dept. of) -->
16265     <!-- http://www.itu.int/oth/T0202000086/en -->
16266     <!-- http://www.arcep.fr/index.php?id=2137&bloc=0596&CMD=RESULTS_NUMEROTATION -->
16267     <territory id="MQ" countryCode="596" internationalPrefix="00"
16268                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16269       <availableFormats>
16270         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16271           <format>$1 $2 $3 $4</format>
16272         </numberFormat>
16273       </availableFormats>
16274       <generalDesc>
16275         <nationalNumberPattern>[56]\d{8}</nationalNumberPattern>
16276         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16277       </generalDesc>
16278       <fixedLine>
16279         <nationalNumberPattern>
16280           596(?:
16281             0[2-5]|
16282             [12]0|
16283             3[05-9]|
16284             4[024-8]|
16285             [5-7]\d|
16286             89|
16287             9[4-8]
16288           )\d{4}
16289         </nationalNumberPattern>
16290         <exampleNumber>596301234</exampleNumber>
16291       </fixedLine>
16292       <mobile>
16293         <nationalNumberPattern>
16294           696(?:
16295             [0-479]\d|
16296             5[01]|
16297             8[0-689]
16298           )\d{4}
16299         </nationalNumberPattern>
16300         <exampleNumber>696201234</exampleNumber>
16301       </mobile>
16302       <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP
16303            numbers were changed from 087 to the 09 prefix in 2009. It is likely this occurred here
16304            too. -->
16305       <!-- http://www.martinique.franceantilles.fr/pratique/urgences/ -->
16306       <emergency>
16307         <nationalNumberPattern>
16308           1(?:
16309             12|
16310             [578]
16311           )
16312         </nationalNumberPattern>
16313         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
16314         <exampleNumber>15</exampleNumber>
16315       </emergency>
16316     </territory>
16317
16318     <!-- Mauritania -->
16319     <!-- http://www.itu.int/oth/T0202000087/en -->
16320     <!-- http://www.are.mr/com-1-4-1.html -->
16321     <territory id="MR" countryCode="222" internationalPrefix="00" >
16322       <availableFormats>
16323         <numberFormat pattern="([2-48]\d)(\d{2})(\d{2})(\d{2})">
16324           <format>$1 $2 $3 $4</format>
16325         </numberFormat>
16326       </availableFormats>
16327       <generalDesc>
16328         <nationalNumberPattern>[2-48]\d{7}</nationalNumberPattern>
16329         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16330       </generalDesc>
16331       <fixedLine>
16332         <nationalNumberPattern>
16333           25[08]\d{5}|
16334           35\d{6}|
16335           45[1-7]\d{5}
16336         </nationalNumberPattern>
16337         <exampleNumber>35123456</exampleNumber>
16338       </fixedLine>
16339       <mobile>
16340         <nationalNumberPattern>
16341           (?:
16342             2(?:
16343               2\d|
16344               70
16345             )|
16346             3(?:
16347               3\d|
16348               6[1-36]|
16349               7[1-3]
16350             )|
16351             4(?:
16352               4\d|
16353               6[0457-9]|
16354               7[4-9]
16355             )
16356           )\d{5}
16357         </nationalNumberPattern>
16358         <exampleNumber>22123456</exampleNumber>
16359       </mobile>
16360       <tollFree>
16361         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
16362         <exampleNumber>80012345</exampleNumber>
16363       </tollFree>
16364       <!-- http://www.lemoci.com/Mauritanie/14-Donnees-generales.htm -->
16365       <emergency>
16366         <nationalNumberPattern>1[78]</nationalNumberPattern>
16367         <possibleNumberPattern>\d{2}</possibleNumberPattern>
16368         <exampleNumber>17</exampleNumber>
16369       </emergency>
16370     </territory>
16371
16372     <!-- Montserrat -->
16373     <!-- http://www.itu.int/oth/T020200008F/en -->
16374     <territory id="MS" countryCode="1" leadingDigits="664" nationalPrefix="1"
16375                internationalPrefix="011">
16376       <generalDesc>
16377         <!-- NANPA country - uses US formatting rules -->
16378         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
16379         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
16380       </generalDesc>
16381       <fixedLine>
16382         <nationalNumberPattern>664491\d{4}</nationalNumberPattern>
16383         <exampleNumber>6644912345</exampleNumber>
16384       </fixedLine>
16385       <mobile>
16386         <nationalNumberPattern>66449[2-6]\d{4}</nationalNumberPattern>
16387         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16388         <exampleNumber>6644923456</exampleNumber>
16389       </mobile>
16390       <tollFree>
16391         <nationalNumberPattern>
16392           8(?:
16393             00|
16394             55|
16395             66|
16396             77|
16397             88
16398           )[2-9]\d{6}
16399         </nationalNumberPattern>
16400         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16401         <exampleNumber>8002123456</exampleNumber>
16402       </tollFree>
16403       <premiumRate>
16404         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
16405         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16406         <exampleNumber>9002123456</exampleNumber>
16407       </premiumRate>
16408       <personalNumber>
16409         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
16410         <nationalNumberPattern>
16411           5(?:
16412             00|
16413             33|
16414             44
16415           )[2-9]\d{6}
16416         </nationalNumberPattern>
16417         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16418         <exampleNumber>5002345678</exampleNumber>
16419       </personalNumber>
16420       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
16421       <emergency>
16422         <nationalNumberPattern>
16423           9(?:
16424             11|
16425             99
16426           )
16427         </nationalNumberPattern>
16428         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16429         <exampleNumber>911</exampleNumber>
16430       </emergency>
16431     </territory>
16432
16433     <!-- Malta -->
16434     <!-- www.itu.int/oth/T0202000084/en -->
16435     <!-- www.mca.org.mt (Numbering link in the LHS menu - has more up-to-date allocations) -->
16436     <territory id="MT" countryCode="356" internationalPrefix="00">
16437       <availableFormats>
16438         <numberFormat pattern="(\d{4})(\d{4})">
16439           <format>$1 $2</format>
16440         </numberFormat>
16441       </availableFormats>
16442       <generalDesc>
16443         <nationalNumberPattern>[2357-9]\d{7}</nationalNumberPattern>
16444         <possibleNumberPattern>\d{8}</possibleNumberPattern>
16445       </generalDesc>
16446       <fixedLine>
16447         <nationalNumberPattern>
16448           2(?:
16449             0(?:
16450               1[0-6]|
16451               [69]\d
16452             )|
16453             [1-357]\d{2}
16454           )\d{4}
16455         </nationalNumberPattern>
16456         <exampleNumber>21001234</exampleNumber>
16457       </fixedLine>
16458       <mobile>
16459         <nationalNumberPattern>
16460           (?:
16461             7(?:
16462               210|
16463               [79]\d{2}
16464             )|
16465             9(?:
16466               2(?:
16467                1[01]|
16468                31
16469               )|
16470               696|
16471               8(?:
16472                 1[1-3]|
16473                 89|
16474                 97
16475               )|
16476               9\d{2}
16477             )
16478           )\d{4}
16479         </nationalNumberPattern>
16480         <exampleNumber>96961234</exampleNumber>
16481       </mobile>
16482       <pager>
16483         <nationalNumberPattern>7117\d{4}</nationalNumberPattern>
16484         <exampleNumber>71171234</exampleNumber>
16485       </pager>
16486       <tollFree>
16487         <nationalNumberPattern>800[3467]\d{4}</nationalNumberPattern>
16488         <exampleNumber>80071234</exampleNumber>
16489       </tollFree>
16490       <premiumRate>
16491         <nationalNumberPattern>
16492           5(?:
16493             0(?:
16494               0(?:
16495                 37|
16496                 43
16497               )|
16498               6\d{2}|
16499               70\d|
16500               9[0168]
16501             )|
16502             [12]\d0[1-5]
16503           )\d{3}
16504         </nationalNumberPattern>
16505         <exampleNumber>50037123</exampleNumber>
16506       </premiumRate>
16507       <voip>
16508         <!-- In the plan as Non-PATS ECS. -->
16509         <nationalNumberPattern>3550\d{4}</nationalNumberPattern>
16510         <exampleNumber>35501234</exampleNumber>
16511       </voip>
16512       <uan>
16513         <!-- Using this for governmental numbers. -->
16514         <nationalNumberPattern>501\d{5}</nationalNumberPattern>
16515         <exampleNumber>50112345</exampleNumber>
16516       </uan>
16517       <emergency>
16518         <nationalNumberPattern>112</nationalNumberPattern>
16519         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16520         <exampleNumber>112</exampleNumber>
16521       </emergency>
16522     </territory>
16523
16524     <!-- Mauritius -->
16525     <!-- http://www.icta.mu/telecommunications/numbering.htm -->
16526     <!-- Preferred international prefix is expected to standardize on just '00' -->
16527     <territory id="MU" countryCode="230" internationalPrefix="0(?:0|[2-7]0|33)"
16528                preferredInternationalPrefix="020">
16529       <availableFormats>
16530         <numberFormat pattern="([2-46-9]\d{2})(\d{4})">
16531           <leadingDigits>[2-46-9]</leadingDigits>
16532           <format>$1 $2</format>
16533         </numberFormat>
16534         <numberFormat pattern="(5\d{3})(\d{4})">
16535           <leadingDigits>5</leadingDigits>
16536           <format>$1 $2</format>
16537         </numberFormat>
16538       </availableFormats>
16539       <generalDesc>
16540         <nationalNumberPattern>[2-9]\d{6,7}</nationalNumberPattern>
16541         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
16542       </generalDesc>
16543       <fixedLine>
16544         <!-- See also: http://www.wtng.info/wtng-230-mu.html for additional detail. -->
16545         <!-- Mauritius has a small number of "fixed line or mobile" numbers prefixed by 44X or 471
16546              (referred to as "Non-geographic fixed-mobile converged numbers" in the ITU document).
16547              As of 1st Sept 2013, these have a leading 5 applied with no parallel running.
16548              Once switchover has occurred the old, 7-digit versions of these numbers can be removed.
16549              We will remove old versions of extended numbers sometime after 2013/09/01 -->
16550         <nationalNumberPattern>
16551           (?:
16552             2(?:
16553               [03478]\d|
16554               1[0-7]|
16555               6[1-69]
16556             )|
16557             4(?:
16558               [013-68]\d|
16559               2[4-7]|
16560               71
16561             )|
16562             5(
16563               44\d|
16564               471|
16565             )|
16566             6\d{2}|
16567             8(?:
16568               14|
16569               3[129]
16570             )
16571           )\d{4}
16572         </nationalNumberPattern>
16573         <exampleNumber>2012345</exampleNumber>
16574       </fixedLine>
16575       <mobile>
16576         <!-- As of 1st Sept 2013, mobile numbers have a leading 5 applied with no parallel running.
16577              The leading 5 will be made required sometime after 2013/09/01 -->
16578         <nationalNumberPattern>
16579           5?(?:
16580             2[59]\d|
16581             4(?:
16582               2[1-389]|
16583               4\d|
16584               7[1-9]|
16585               9\d
16586             )|
16587             7\d{2}|
16588             8(?:
16589               [26]\d|
16590               7[15-8]
16591             )|
16592             9[0-8]\d
16593           )\d{4}
16594         </nationalNumberPattern>
16595         <exampleNumber>52512345</exampleNumber>
16596       </mobile>
16597       <tollFree>
16598         <nationalNumberPattern>80[012]\d{4}</nationalNumberPattern>
16599         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16600         <exampleNumber>8001234</exampleNumber>
16601       </tollFree>
16602       <premiumRate>
16603         <nationalNumberPattern>30\d{5}</nationalNumberPattern>
16604         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16605         <exampleNumber>3012345</exampleNumber>
16606       </premiumRate>
16607       <voip>
16608         <nationalNumberPattern>
16609           3(?:
16610             20|
16611             9\d
16612           )\d{4}
16613         </nationalNumberPattern>
16614         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16615         <exampleNumber>3201234</exampleNumber>
16616       </voip>
16617       <emergency>
16618         <nationalNumberPattern>
16619           11[45]|
16620           99[59]
16621         </nationalNumberPattern>
16622         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16623         <exampleNumber>999</exampleNumber>
16624       </emergency>
16625     </territory>
16626
16627     <!-- Maldives -->
16628     <!-- http://www.itu.int/oth/T0202000082/en -->
16629     <!-- www.dhiraagu.com.mv -->
16630     <territory id="MV" countryCode="960" internationalPrefix="0(?:0|19)"
16631                preferredInternationalPrefix="00">
16632       <availableFormats>
16633         <numberFormat pattern="(\d{3})(\d{4})">
16634           <leadingDigits>
16635             [3467]|
16636             9(?:
16637               [1-9]|
16638               0[1-9]
16639             )
16640           </leadingDigits>
16641           <format>$1-$2</format>
16642         </numberFormat>
16643         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16644           <leadingDigits>900</leadingDigits>
16645           <format>$1 $2 $3</format>
16646         </numberFormat>
16647       </availableFormats>
16648       <generalDesc>
16649         <nationalNumberPattern>
16650           [3467]\d{6}|
16651           9(?:
16652             00\d{7}|
16653             \d{6}
16654           )
16655         </nationalNumberPattern>
16656         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16657       </generalDesc>
16658       <fixedLine>
16659         <!-- 300 has been added as prefixes from online searches, since the numbers seemed to be
16660              diallable. -->
16661         <nationalNumberPattern>
16662           (?:
16663             3(?:
16664               0[01]|
16665               3[0-59]
16666             )|
16667             6(?:
16668               [567][02468]|
16669               8[024689]|
16670               90
16671             )
16672           )\d{4}
16673         </nationalNumberPattern>
16674         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16675         <exampleNumber>6701234</exampleNumber>
16676       </fixedLine>
16677       <mobile>
16678         <!-- 7[45] has been added as many numbers online have been found with this prefix. 46[46]
16679              are new prefixes for Dhiraagu and Wataniya, used currently for SMS-based services.
16680              91 was added based on information from Wataniya Telecom. -->
16681         <nationalNumberPattern>
16682           (?:
16683             46[46]|
16684             7[3-9]\d|
16685             9[16-9]\d
16686           )\d{4}
16687         </nationalNumberPattern>
16688         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16689         <exampleNumber>7712345</exampleNumber>
16690       </mobile>
16691       <pager>
16692         <nationalNumberPattern>781\d{4}</nationalNumberPattern>
16693         <possibleNumberPattern>\d{7}</possibleNumberPattern>
16694         <exampleNumber>7812345</exampleNumber>
16695       </pager>
16696       <premiumRate>
16697         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16698         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16699         <exampleNumber>9001234567</exampleNumber>
16700       </premiumRate>
16701       <emergency>
16702         <nationalNumberPattern>
16703           1(?:
16704             02|
16705             19
16706           )
16707         </nationalNumberPattern>
16708         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16709         <exampleNumber>102</exampleNumber>
16710       </emergency>
16711     </territory>
16712
16713     <!-- Malawi -->
16714     <!-- http://www.itu.int/oth/T0202000080/en -->
16715     <!-- The plan doesn't state that a national prefix exists, but numbers found on the internet are
16716          consistent in having one. -->
16717     <territory id="MW" countryCode="265" internationalPrefix="00"
16718                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
16719       <availableFormats>
16720         <numberFormat pattern="(\d)(\d{3})(\d{3})">
16721           <leadingDigits>1</leadingDigits>
16722           <format>$1 $2 $3</format>
16723         </numberFormat>
16724         <numberFormat pattern="(2\d{2})(\d{3})(\d{3})">
16725           <leadingDigits>2</leadingDigits>
16726           <format>$1 $2 $3</format>
16727         </numberFormat>
16728         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
16729           <leadingDigits>[1789]</leadingDigits>
16730           <format>$1 $2 $3 $4</format>
16731         </numberFormat>
16732       </availableFormats>
16733       <generalDesc>
16734         <nationalNumberPattern>
16735           (?:
16736             1(?:
16737               \d{2}
16738             )?|
16739             [2789]\d{2}
16740           )\d{6}
16741         </nationalNumberPattern>
16742         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
16743       </generalDesc>
16744       <fixedLine>
16745         <!-- 14 is no longer mentioned in the plan as a prefix, but plenty of online numbers have
16746              been found so this is being retained for now.  It is possible however that these may be
16747              old-format mobile numbers. -->
16748         <nationalNumberPattern>
16749           (?:
16750             1[2-9]|
16751             21\d{2}
16752           )\d{5}
16753         </nationalNumberPattern>
16754         <exampleNumber>1234567</exampleNumber>
16755       </fixedLine>
16756       <mobile>
16757         <nationalNumberPattern>
16758           (?:
16759             111|
16760             77\d|
16761             88\d|
16762             99\d
16763           )\d{6}
16764         </nationalNumberPattern>
16765         <possibleNumberPattern>\d{9}</possibleNumberPattern>
16766         <exampleNumber>991234567</exampleNumber>
16767       </mobile>
16768       <emergency>
16769         <!-- http://www.malawiembassy.org/visit/contact.html -->
16770         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_959.html -->
16771         <nationalNumberPattern>
16772           199|
16773           99[789]
16774         </nationalNumberPattern>
16775         <possibleNumberPattern>\d{3}</possibleNumberPattern>
16776         <exampleNumber>997</exampleNumber>
16777       </emergency>
16778     </territory>
16779
16780     <!-- Mexico -->
16781     <!-- http://www.itu.int/oth/T020200008A/en -->
16782     <!-- http://en.wikipedia.org/wiki/%2B52 -->
16783     <!-- http://en.wikipedia.org/wiki/Premium-rate_telephone_number#Mexico -->
16784     <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
16785     <territory id="MX" countryCode="52" internationalPrefix="0[09]"
16786                nationalPrefix="01"
16787                nationalPrefixForParsing="0[12]|04[45](\d{10})"
16788                nationalPrefixTransformRule="1$1"
16789                nationalPrefixFormattingRule="$NP $FG"
16790                nationalPrefixOptionalWhenFormatting="true">
16791       <!-- When a number starts with 01 or 02, we remove the prefixes; when a number starts with 044
16792            or 045 followed by 10 digits, we replace the prefixes with 1. This way all the mobile
16793            numbers, regardless of whether they are written in international format (leading 1) or
16794            national format (leading 044/045), will be parsed into the same form. -->
16795       <availableFormats>
16796         <numberFormat pattern="([358]\d)(\d{4})(\d{4})">
16797           <leadingDigits>
16798             33|
16799             55|
16800             81
16801           </leadingDigits>
16802           <format>$1 $2 $3</format>
16803         </numberFormat>
16804         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
16805           <leadingDigits>
16806             [2467]|
16807             3[12457-9]|
16808             5[89]|
16809             8[02-9]|
16810             9[0-35-9]
16811           </leadingDigits>
16812           <format>$1 $2 $3</format>
16813         </numberFormat>
16814         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)([358]\d)(\d{4})(\d{4})">
16815           <leadingDigits>
16816             1(?:
16817               33|
16818               55|
16819               81
16820             )
16821           </leadingDigits>
16822           <format>044 $2 $3 $4</format>
16823           <intlFormat>$1 $2 $3 $4</intlFormat>
16824         </numberFormat>
16825         <numberFormat nationalPrefixFormattingRule="$FG" pattern="(1)(\d{3})(\d{3})(\d{4})">
16826           <leadingDigits>
16827             1(?:
16828               [2467]|
16829               3[12457-9]|
16830               5[89]|
16831               8[2-9]|
16832               9[1-35-9]
16833             )
16834           </leadingDigits>
16835           <format>044 $2 $3 $4</format>
16836           <intlFormat>$1 $2 $3 $4</intlFormat>
16837         </numberFormat>
16838       </availableFormats>
16839       <generalDesc>
16840         <nationalNumberPattern>[1-9]\d{9,10}</nationalNumberPattern>
16841         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
16842       </generalDesc>
16843       <fixedLine>
16844         <!-- http://en.wikipedia.org/wiki/Area_codes_in_Mexico_by_code -->
16845         <nationalNumberPattern>
16846           (?:
16847             33|
16848             55|
16849             81
16850           )\d{8}|
16851           (?:
16852             2(?:
16853               2[2-9]|
16854               3[1-35-8]|
16855               4[13-9]|
16856               7[1-689]|
16857               8[1-578]|
16858               9[467]
16859             )|
16860             3(?:
16861               1[1-79]|
16862               [2458][1-9]|
16863               7[1-8]|
16864               9[1-5]
16865             )|
16866             4(?:
16867               1[1-57-9]|
16868               [24-6][1-9]|
16869               [37][1-8]|
16870               8[1-35-9]|
16871               9[2-689]
16872             )|
16873             5(?:
16874               88|
16875               9[1-79]
16876             )|
16877             6(?:
16878               1[2-68]|
16879               [234][1-9]|
16880               5[1-3689]|
16881               6[12457-9]|
16882               7[1-7]|
16883               8[67]|
16884               9[4-8]
16885             )|
16886             7(?:
16887               [13467][1-9]|
16888               2[1-8]|
16889               5[13-9]|
16890               8[1-69]|
16891               9[17]
16892             )|
16893             8(?:
16894               2[13-689]|
16895               3[1-6]|
16896               4[124-6]|
16897               6[1246-9]|
16898               7[1-378]|
16899               9[12479]
16900             )|
16901             9(?:
16902               1[346-9]|
16903               2[1-4]|
16904               3[2-46-8]|
16905               5[1348]|
16906               [69][1-9]|
16907               7[12]|
16908               8[1-8]
16909             )
16910           )\d{7}
16911         </nationalNumberPattern>
16912         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
16913         <exampleNumber>2221234567</exampleNumber>
16914       </fixedLine>
16915       <mobile>
16916         <nationalNumberPattern>
16917           1(?:
16918             (?:
16919               33|
16920               55|
16921               81
16922             )\d{8}|
16923             (?:
16924               2(?:
16925                 2[2-9]|
16926                 3[1-35-8]|
16927                 4[13-9]|
16928                 7[1-689]|
16929                 8[1-578]|
16930                 9[467]
16931               )|
16932               3(?:
16933                 1[1-79]|
16934                 [2458][1-9]|
16935                 7[1-8]|
16936                 9[1-5]
16937               )|
16938               4(?:
16939                 1[1-57-9]|
16940                 [24-6][1-9]|
16941                 [37][1-8]|
16942                 8[1-35-9]|
16943                 9[2-689]
16944               )|
16945               5(?:
16946                 88|
16947                 9[1-79]
16948               )|
16949               6(?:
16950                 1[2-68]|
16951                 [2-4][1-9]|
16952                 5[1-3689]|
16953                 6[12457-9]|
16954                 7[1-7]|
16955                 8[67]|
16956                 9[4-8]
16957               )|
16958               7(?:
16959                 [13467][1-9]|
16960                 2[1-8]|
16961                 5[13-9]|
16962                 8[1-69]|
16963                 9[17]
16964               )|
16965               8(?:
16966                 2[13-689]|
16967                 3[1-6]|
16968                 4[124-6]|
16969                 6[1246-9]|
16970                 7[1-378]|
16971                 9[12479]
16972               )|
16973               9(?:
16974                 1[346-9]|
16975                 2[1-4]|
16976                 3[2-46-8]|
16977                 5[1348]|
16978                 [69][1-9]|
16979                 7[12]|
16980                 8[1-8]
16981               )
16982             )\d{7}
16983           )
16984         </nationalNumberPattern>
16985         <possibleNumberPattern>\d{11}</possibleNumberPattern>
16986         <exampleNumber>12221234567</exampleNumber>
16987       </mobile>
16988       <tollFree>
16989         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
16990         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16991         <exampleNumber>8001234567</exampleNumber>
16992       </tollFree>
16993       <premiumRate>
16994         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
16995         <possibleNumberPattern>\d{10}</possibleNumberPattern>
16996         <exampleNumber>9001234567</exampleNumber>
16997       </premiumRate>
16998       <emergency>
16999         <nationalNumberPattern>
17000           06[568]|
17001           911
17002         </nationalNumberPattern>
17003         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17004         <exampleNumber>066</exampleNumber>
17005       </emergency>
17006     </territory>
17007
17008     <!-- Malaysia -->
17009     <!-- http://en.wikipedia.org/wiki/%2B60 -->
17010     <!-- http://www.skmm.gov.my -->
17011     <territory id="MY" countryCode="60" internationalPrefix="00"
17012                nationalPrefix="0">
17013       <availableFormats>
17014         <numberFormat nationalPrefixFormattingRule="$NP$FG"
17015           pattern="([4-79])(\d{3})(\d{4})">
17016           <leadingDigits>[4-79]</leadingDigits>
17017           <format>$1-$2 $3</format>
17018         </numberFormat>
17019         <numberFormat nationalPrefixFormattingRule="$NP$FG"
17020           pattern="(3)(\d{4})(\d{4})">
17021           <leadingDigits>3</leadingDigits>
17022           <format>$1-$2 $3</format>
17023         </numberFormat>
17024         <numberFormat nationalPrefixFormattingRule="$NP$FG"
17025           pattern="([18]\d)(\d{3})(\d{3,4})">
17026           <leadingDigits>
17027             1[02-46-9][1-9]|
17028             8
17029           </leadingDigits>
17030           <format>$1-$2 $3</format>
17031         </numberFormat>
17032         <numberFormat pattern="(1)([36-8]00)(\d{2})(\d{4})">
17033           <leadingDigits>1[36-8]0</leadingDigits>
17034           <format>$1-$2-$3-$4</format>
17035         </numberFormat>
17036         <numberFormat nationalPrefixFormattingRule="$NP$FG"
17037           pattern="(11)(\d{4})(\d{4})">
17038           <leadingDigits>11</leadingDigits>
17039           <format>$1-$2 $3</format>
17040         </numberFormat>
17041         <numberFormat nationalPrefixFormattingRule="$NP$FG"
17042           pattern="(15[49])(\d{3})(\d{4})">
17043           <leadingDigits>15</leadingDigits>
17044           <format>$1-$2 $3</format>
17045         </numberFormat>
17046       </availableFormats>
17047       <generalDesc>
17048         <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
17049         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17050       </generalDesc>
17051       <fixedLine>
17052         <nationalNumberPattern>
17053           (?:
17054             3[2-9]\d|
17055             [4-9][2-9]
17056           )\d{6}
17057         </nationalNumberPattern>
17058         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
17059         <exampleNumber>323456789</exampleNumber>
17060       </fixedLine>
17061       <mobile>
17062         <!-- Although the plan lists the prefix 159 as broadband services (data only), apparently it
17063              is possible to send SMSs (and receive them) from numbers in this block, so we are
17064              listing them as mobile. -->
17065         <nationalNumberPattern>
17066           1(?:
17067             1[1-3]\d{2}|
17068             [02-4679][2-9]\d|
17069             59\d{2}|
17070             8(?:
17071               1[23]|
17072               [2-9]\d
17073             )
17074           )\d{5}
17075         </nationalNumberPattern>
17076         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
17077         <exampleNumber>123456789</exampleNumber>
17078       </mobile>
17079       <tollFree>
17080         <nationalNumberPattern>1[38]00\d{6}</nationalNumberPattern>
17081         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17082         <exampleNumber>1300123456</exampleNumber>
17083       </tollFree>
17084       <premiumRate>
17085         <nationalNumberPattern>1600\d{6}</nationalNumberPattern>
17086         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17087         <exampleNumber>1600123456</exampleNumber>
17088       </premiumRate>
17089       <personalNumber>
17090         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
17091         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17092         <exampleNumber>1700123456</exampleNumber>
17093       </personalNumber>
17094       <voip>
17095         <nationalNumberPattern>154\d{7}</nationalNumberPattern>
17096         <possibleNumberPattern>\d{10}</possibleNumberPattern>
17097         <exampleNumber>1541234567</exampleNumber>
17098       </voip>
17099       <emergency>
17100         <nationalNumberPattern>
17101           112|
17102           999
17103         </nationalNumberPattern>
17104         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17105         <exampleNumber>999</exampleNumber>
17106       </emergency>
17107     </territory>
17108
17109     <!-- Mozambique -->
17110     <!-- http://www.itu.int/oth/T0202000091/en -->
17111     <territory id="MZ" countryCode="258" internationalPrefix="00">
17112       <availableFormats>
17113         <numberFormat pattern="([28]\d)(\d{3})(\d{3,4})">
17114           <leadingDigits>
17115             2|
17116             8[246]
17117           </leadingDigits>
17118           <format>$1 $2 $3</format>
17119         </numberFormat>
17120         <numberFormat pattern="(80\d)(\d{3})(\d{3})">
17121           <leadingDigits>80</leadingDigits>
17122           <format>$1 $2 $3</format>
17123         </numberFormat>
17124       </availableFormats>
17125       <generalDesc>
17126         <nationalNumberPattern>[28]\d{7,8}</nationalNumberPattern>
17127         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17128       </generalDesc>
17129       <fixedLine>
17130         <nationalNumberPattern>
17131           2(?:
17132             [1346]\d|
17133             5[0-2]|
17134             [78][12]|
17135             93
17136           )\d{5}
17137         </nationalNumberPattern>
17138         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17139         <exampleNumber>21123456</exampleNumber>
17140       </fixedLine>
17141       <mobile>
17142         <nationalNumberPattern>8[246]\d{7}</nationalNumberPattern>
17143         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17144         <exampleNumber>821234567</exampleNumber>
17145       </mobile>
17146       <tollFree>
17147         <!-- Unsure of the length requirement on toll-free numbers, so using 9 based on online
17148              examples. -->
17149         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
17150         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17151         <exampleNumber>800123456</exampleNumber>
17152       </tollFree>
17153       <!-- The plan suggests 801 and 802 numbers are shared-cost numbers, and numbers beginning with
17154            a 9 are premium rate, but no online examples can be found of any of these so they are
17155            omitted for the time-being. -->
17156       <emergency>
17157         <!-- 11X is national, 19X is for Maputo. -->
17158         <!-- http://www.lonelyplanet.com/shop_pickandmix/previews/mozambique-maputo-preview.pdf -->
17159         <!-- http://ccmusa.online.co.mz/index.php?option=com_content&task=view&id=20&Itemid=30 -->
17160         <nationalNumberPattern>
17161           1(?:
17162             1[79]|
17163             9[78]
17164           )
17165         </nationalNumberPattern>
17166         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17167         <exampleNumber>119</exampleNumber>
17168       </emergency>
17169     </territory>
17170
17171     <!-- Namibia -->
17172     <!-- http://www.itu.int/oth/T0202000093/en -->
17173     <territory id="NA" countryCode="264" internationalPrefix="00"
17174                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17175       <availableFormats>
17176         <numberFormat pattern="(8\d)(\d{3})(\d{4})">
17177           <leadingDigits>8[1235]</leadingDigits>
17178           <format>$1 $2 $3</format>
17179         </numberFormat>
17180         <numberFormat pattern="(6\d)(\d{2,3})(\d{4})">
17181           <leadingDigits>6</leadingDigits>
17182           <format>$1 $2 $3</format>
17183         </numberFormat>
17184         <numberFormat pattern="(88)(\d{3})(\d{3})">
17185           <leadingDigits>88</leadingDigits>
17186           <format>$1 $2 $3</format>
17187         </numberFormat>
17188         <numberFormat pattern="(870)(\d{3})(\d{3})">
17189           <leadingDigits>870</leadingDigits>
17190           <format>$1 $2 $3</format>
17191         </numberFormat>
17192       </availableFormats>
17193       <generalDesc>
17194         <nationalNumberPattern>[68]\d{7,8}</nationalNumberPattern>
17195         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
17196       </generalDesc>
17197       <fixedLine>
17198         <!-- Includes VSAT service. -->
17199         <nationalNumberPattern>
17200           6(?:
17201             1(?:
17202               17|
17203               2(?:
17204                 [0189]\d|
17205                 [2-6]|
17206                 7\d?
17207               )|
17208               3(?:
17209                 2\d|
17210                 3[378]
17211               )|
17212               4[01]|
17213               69|
17214               7[014]
17215             )|
17216             2(?:
17217               17|
17218               25|
17219               5(?:
17220                 [0-36-8]|
17221                 4\d?
17222               )|
17223               69|
17224               70
17225             )|
17226             3(?:
17227               17|
17228               2(?:
17229                 [0237]\d?|
17230                 [14-689]
17231               )|
17232               34|
17233               6[29]|
17234               7[01]|
17235               81
17236             )|
17237             4(?:
17238               17|
17239               2(?:
17240                 [012]|
17241                 7?
17242               )|
17243               4(?:
17244                 [06]|
17245                 1\d
17246               )|
17247               5(?:
17248                 [01357]|
17249                 [25]\d?
17250               )|
17251               69|
17252               7[01]
17253             )|
17254             5(?:
17255               17|
17256               2(?:
17257                 [0459]|
17258                 [23678]\d?
17259               )|
17260               69|
17261               7[01]
17262             )|
17263             6(?:
17264               17|
17265               2(?:
17266                 5|
17267                 6\d?
17268               )|
17269               38|
17270               42|
17271               69|
17272               7[01]
17273             )|
17274             7(?:
17275               17|
17276               2(?:
17277                 [569]|
17278                 [234]\d?
17279               )|
17280               3(?:
17281                 0\d?|
17282                 [13]
17283               )|
17284               69|
17285               7[01]
17286             )
17287           )\d{4}
17288         </nationalNumberPattern>
17289         <exampleNumber>61221234</exampleNumber>
17290       </fixedLine>
17291       <mobile>
17292         <!-- Includes the Switch CDMA Service. -->
17293         <nationalNumberPattern>
17294           (?:
17295             60|
17296             8[125]
17297           )\d{7}
17298         </nationalNumberPattern>
17299         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17300         <exampleNumber>811234567</exampleNumber>
17301       </mobile>
17302       <premiumRate>
17303         <nationalNumberPattern>8701\d{5}</nationalNumberPattern>
17304         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17305         <exampleNumber>870123456</exampleNumber>
17306       </premiumRate>
17307       <voip>
17308         <!-- Including virtual telephone and VOIP services. -->
17309         <nationalNumberPattern>
17310           8(
17311             3\d{2}|
17312             86
17313           )\d{5}
17314         </nationalNumberPattern>
17315         <exampleNumber>88612345</exampleNumber>
17316       </voip>
17317       <emergency>
17318         <!-- ITU doc reserves 9XX for emergency numbers. No examples found. -->
17319         <!-- http://www.namibia-1on1.com/information/a-emergencynos.html -->
17320         <nationalNumberPattern>10111</nationalNumberPattern>
17321         <possibleNumberPattern>\d{5}</possibleNumberPattern>
17322         <exampleNumber>10111</exampleNumber>
17323       </emergency>
17324     </territory>
17325
17326     <!-- New Caledonia (Territoire français d'outre-mer) -->
17327     <!-- http://www.itu.int/oth/T0202000098/en -->
17328     <territory id="NC" countryCode="687" internationalPrefix="00">
17329       <availableFormats>
17330         <!-- From www.1012.nc, the local yellow pages. -->
17331         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
17332           <format>$1.$2.$3</format>
17333         </numberFormat>
17334       </availableFormats>
17335       <generalDesc>
17336         <nationalNumberPattern>[2-47-9]\d{5}</nationalNumberPattern>
17337         <possibleNumberPattern>\d{6}</possibleNumberPattern>
17338       </generalDesc>
17339       <fixedLine>
17340         <!-- Including the 88 prefix for public payphones. -->
17341         <nationalNumberPattern>
17342           (?:
17343             2[03-9]|
17344             3[0-5]|
17345             4[1-7]|
17346             88
17347           )\d{4}
17348         </nationalNumberPattern>
17349         <exampleNumber>201234</exampleNumber>
17350       </fixedLine>
17351       <mobile>
17352         <nationalNumberPattern>
17353           (?:
17354             [79]\d|
17355             8[0-79]
17356           )\d{4}
17357         </nationalNumberPattern>
17358         <exampleNumber>751234</exampleNumber>
17359       </mobile>
17360       <!-- Listed as "voice services", from what we've seen they seem to cost extra. -->
17361       <premiumRate>
17362         <nationalNumberPattern>36\d{4}</nationalNumberPattern>
17363         <exampleNumber>366711</exampleNumber>
17364       </premiumRate>
17365       <!-- http://www.routard.com/guide/nouvelle_caledonie/2343/vie_pratique.htm -->
17366       <emergency>
17367         <nationalNumberPattern>1[5-8]</nationalNumberPattern>
17368         <possibleNumberPattern>\d{2}</possibleNumberPattern>
17369         <exampleNumber>15</exampleNumber>
17370       </emergency>
17371     </territory>
17372
17373     <!-- Niger -->
17374     <!-- http://www.itu.int/oth/T020200009B/en -->
17375     <territory id="NE" countryCode="227" internationalPrefix="00" leadingZeroPossible="true">
17376       <availableFormats>
17377         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
17378           <leadingDigits>
17379             [289]|
17380             09
17381           </leadingDigits>
17382           <format>$1 $2 $3 $4</format>
17383         </numberFormat>
17384         <numberFormat pattern="(08)(\d{3})(\d{3})">
17385           <leadingDigits>08</leadingDigits>
17386           <format>$1 $2 $3</format>
17387         </numberFormat>
17388       </availableFormats>
17389       <generalDesc>
17390         <nationalNumberPattern>[0289]\d{7}</nationalNumberPattern>
17391         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17392       </generalDesc>
17393       <fixedLine>
17394         <!-- Adding 20 61 from online numbers. -->
17395         <nationalNumberPattern>
17396           2(?:
17397             0(?:
17398               20|
17399               3[1-7]|
17400               4[134]|
17401               5[14]|
17402               6[14578]|
17403               7[1-578]
17404             )|
17405             1(?:
17406               4[145]|
17407               5[14]|
17408               6[14-68]|
17409               7[169]|
17410               88
17411             )
17412           )\d{4}
17413         </nationalNumberPattern>
17414         <exampleNumber>20201234</exampleNumber>
17415       </fixedLine>
17416       <mobile>
17417         <!-- Added 90, 91, 92, 97, 98 & 99 from online data. Airtel have confirmed that they use the
17418              89 and 97 prefixes, and Orange use 92. -->
17419         <nationalNumberPattern>
17420           (?:
17421             89|
17422             9[0-46-9]
17423           )\d{6}
17424         </nationalNumberPattern>
17425         <exampleNumber>93123456</exampleNumber>
17426       </mobile>
17427       <tollFree>
17428         <nationalNumberPattern>08\d{6}</nationalNumberPattern>
17429         <exampleNumber>08123456</exampleNumber>
17430       </tollFree>
17431       <premiumRate>
17432         <nationalNumberPattern>09\d{6}</nationalNumberPattern>
17433         <exampleNumber>09123456</exampleNumber>
17434       </premiumRate>
17435       <!-- No emergency numbers information can be found. -->
17436     </territory>
17437
17438     <!-- Norfolk Island -->
17439     <!-- http://www.itu.int/oth/T020200009D/en -->
17440     <!-- Including numbers for Australian Antarctic stations. -->
17441     <territory id="NF" countryCode="672" internationalPrefix="00">
17442       <availableFormats>
17443         <numberFormat pattern="(\d{2})(\d{4})">
17444            <leadingDigits>1</leadingDigits>
17445           <format>$1 $2</format>
17446         </numberFormat>
17447         <numberFormat pattern="(\d)(\d{5})">
17448           <leadingDigits>3</leadingDigits>
17449           <format>$1 $2</format>
17450         </numberFormat>
17451       </availableFormats>
17452       <generalDesc>
17453         <nationalNumberPattern>[13]\d{5}</nationalNumberPattern>
17454         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17455       </generalDesc>
17456       <fixedLine>
17457         <!-- ITU says all 3X numbers except 38 are fixed-line, but 3[3-79] numbers don't seem to
17458              connect after we tried calling them. -->
17459         <nationalNumberPattern>
17460           (?:
17461             1(?:
17462               06|
17463               17|
17464               28|
17465               39
17466             )|
17467             3[012]\d
17468           )\d{3}
17469         </nationalNumberPattern>
17470         <exampleNumber>106609</exampleNumber>
17471       </fixedLine>
17472       <mobile>
17473         <nationalNumberPattern>38\d{4}</nationalNumberPattern>
17474         <exampleNumber>381234</exampleNumber>
17475       </mobile>
17476       <emergency>
17477         <!-- http://www.discovernorfolkisland.com/norfolk/ -->
17478         <nationalNumberPattern>
17479           9(?:
17480             11|
17481             55|
17482             77
17483           )
17484         </nationalNumberPattern>
17485         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17486         <exampleNumber>911</exampleNumber>
17487       </emergency>
17488     </territory>
17489
17490     <!-- Nigeria -->
17491     <!-- http://www.itu.int/oth/T020200009C/en -->
17492     <territory id="NG" countryCode="234" internationalPrefix="009"
17493                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17494       <availableFormats>
17495         <numberFormat pattern="([129])(\d{3})(\d{3,4})">
17496           <leadingDigits>[129]</leadingDigits>
17497           <format>$1 $2 $3</format>
17498         </numberFormat>
17499         <numberFormat pattern="([3-8]\d)(\d{3})(\d{2,3})">
17500           <leadingDigits>
17501             [3-6]|
17502             7(?:
17503               [1-79]|
17504               0[1-9]
17505             )|
17506             8[2-9]
17507           </leadingDigits>
17508           <format>$1 $2 $3</format>
17509         </numberFormat>
17510         <numberFormat pattern="([78]\d{2})(\d{3})(\d{3,4})">
17511           <leadingDigits>
17512             70|
17513             8[01]
17514           </leadingDigits>
17515           <format>$1 $2 $3</format>
17516         </numberFormat>
17517         <numberFormat pattern="([78]00)(\d{4})(\d{4,5})">
17518           <leadingDigits>[78]00</leadingDigits>
17519           <format>$1 $2 $3</format>
17520         </numberFormat>
17521         <numberFormat pattern="([78]00)(\d{5})(\d{5,6})">
17522           <leadingDigits>[78]00</leadingDigits>
17523           <format>$1 $2 $3</format>
17524         </numberFormat>
17525         <numberFormat pattern="(78)(\d{2})(\d{3})">
17526           <leadingDigits>78</leadingDigits>
17527           <format>$1 $2 $3</format>
17528         </numberFormat>
17529       </availableFormats>
17530       <generalDesc>
17531         <nationalNumberPattern>
17532           [1-69]\d{5,8}|
17533           [78]\d{5,13}
17534         </nationalNumberPattern>
17535         <possibleNumberPattern>\d{5,14}</possibleNumberPattern>
17536       </generalDesc>
17537       <fixedLine>
17538         <nationalNumberPattern>
17539           [12]\d{6,7}|
17540           9\d{7}|
17541           (?:
17542             3\d|
17543             4[023568]|
17544             5[02368]|
17545             6[02-469]|
17546             7[4-69]|
17547             8[2-9]
17548           )\d{6}|
17549           (?:
17550             4[47]|
17551             5[14579]|
17552             6[1578]|
17553             7[0-357]
17554           )\d{5,6}|
17555           (?:
17556             78|
17557             41
17558           )\d{5}
17559         </nationalNumberPattern>
17560         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
17561         <exampleNumber>12345678</exampleNumber>
17562       </fixedLine>
17563       <mobile>
17564         <!-- More 81X prefixes have been added based on online numbers, including the prefix 817
17565              from Etisalat, 814 MTN and 811 from Glo. Furthermore, the fixed-line prefixes owned by
17566              Starcomms have apparently, according to the company, been used for mobile numbers too,
17567              despite the ITU plan, so we list them here as well. 701 has been added for Airtel/Zain.
17568              -->
17569         <nationalNumberPattern>
17570           (?:
17571             1(?:
17572               7[34]\d|
17573               8(?:
17574                 04|
17575                 [124579]\d|
17576                 8[0-3]
17577               )|
17578               95\d
17579             )|
17580             287[0-7]|
17581             3(?:
17582               18[1-8]|
17583               88[0-7]|
17584               9(?:
17585                 8[5-9]|
17586                 6[1-5]
17587               )
17588             )|
17589             4(?:
17590               28[0-2]|
17591               6(?:
17592                 7[1-9]|
17593                 8[02-47]
17594               )|
17595               88[0-2]
17596             )|
17597             5(?:
17598               2(?:
17599                 7[7-9]|
17600                 8\d
17601               )|
17602               38[1-79]|
17603               48[0-7]|
17604               68[4-7]
17605             )|
17606             6(?:
17607               2(?:
17608                 7[7-9]|
17609                 8\d
17610               )|
17611               4(?:
17612                 3[7-9]|
17613                 [68][129]|
17614                 7[04-69]|
17615                 9[1-8]
17616               )|
17617               58[0-2]|
17618               98[7-9]
17619             )|
17620             7(?:
17621               38[0-7]|
17622               69[1-8]|
17623               78[2-4]
17624             )|
17625             8(?:
17626               28[3-9]|
17627               38[0-2]|
17628               4(?:
17629                 2[12]|
17630                 3[147-9]|
17631                 5[346]|
17632                 7[4-9]|
17633                 8[014-689]|
17634                 90
17635               )|
17636               58[1-8]|
17637               78[2-9]|
17638               88[5-7]
17639             )|
17640             98[07]\d
17641           )\d{4}|
17642           (?:
17643             70(?:
17644               [13-9]\d|
17645               2[1-9]
17646             )|
17647             8(?:
17648               0[2-9]|
17649               1\d
17650             )\d
17651           )\d{6}
17652         </nationalNumberPattern>
17653         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
17654         <exampleNumber>8021234567</exampleNumber>
17655       </mobile>
17656       <!-- Info on these numbers from http://www.alphatechnologieslimited.com. -->
17657       <tollFree>
17658         <nationalNumberPattern>800\d{7,11}</nationalNumberPattern>
17659         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17660         <exampleNumber>80017591759</exampleNumber>
17661       </tollFree>
17662       <uan>
17663         <nationalNumberPattern>700\d{7,11}</nationalNumberPattern>
17664         <possibleNumberPattern>\d{10,14}</possibleNumberPattern>
17665         <exampleNumber>7001234567</exampleNumber>
17666       </uan>
17667       <emergency>
17668         <nationalNumberPattern>199</nationalNumberPattern>
17669         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17670         <exampleNumber>199</exampleNumber>
17671       </emergency>
17672     </territory>
17673
17674     <!-- Nicaragua -->
17675     <!-- http://www.itu.int/oth/T020200009A/en -->
17676     <territory id="NI" countryCode="505" internationalPrefix="00">
17677       <availableFormats>
17678         <numberFormat pattern="(\d{4})(\d{4})">
17679           <format>$1 $2</format>
17680         </numberFormat>
17681       </availableFormats>
17682       <generalDesc>
17683         <nationalNumberPattern>[128]\d{7}</nationalNumberPattern>
17684         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17685       </generalDesc>
17686       <fixedLine>
17687         <nationalNumberPattern>2\d{7}</nationalNumberPattern>
17688         <exampleNumber>21234567</exampleNumber>
17689       </fixedLine>
17690       <mobile>
17691         <nationalNumberPattern>8\d{7}</nationalNumberPattern>
17692         <exampleNumber>81234567</exampleNumber>
17693       </mobile>
17694       <tollFree>
17695         <nationalNumberPattern>1800\d{4}</nationalNumberPattern>
17696         <exampleNumber>18001234</exampleNumber>
17697       </tollFree>
17698       <emergency>
17699         <nationalNumberPattern>118</nationalNumberPattern>
17700         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17701         <exampleNumber>118</exampleNumber>
17702       </emergency>
17703     </territory>
17704
17705     <!-- Netherlands -->
17706     <!-- http://en.wikipedia.org/wiki/%2B31 -->
17707     <!-- http://www.opta.nl/en/numbers/search-for-numbers -->
17708     <territory id="NL" countryCode="31" internationalPrefix="00"
17709                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17710       <availableFormats>
17711         <numberFormat pattern="([1-578]\d)(\d{3})(\d{4})">
17712           <leadingDigits>
17713             1[035]|
17714             2[0346]|
17715             3[03568]|
17716             4[0356]|
17717             5[0358]|
17718             7|
17719             8[4578]
17720           </leadingDigits>
17721           <format>$1 $2 $3</format>
17722         </numberFormat>
17723         <numberFormat pattern="([1-5]\d{2})(\d{3})(\d{3})">
17724           <leadingDigits>
17725             1[16-8]|
17726             2[259]|
17727             3[124]|
17728             4[17-9]|
17729             5[124679]
17730           </leadingDigits>
17731           <format>$1 $2 $3</format>
17732         </numberFormat>
17733         <numberFormat pattern="(6)(\d{8})">
17734           <leadingDigits>6[0-57-9]</leadingDigits>
17735           <format>$1 $2</format>
17736         </numberFormat>
17737         <numberFormat pattern="(66)(\d{7})">
17738           <leadingDigits>66</leadingDigits>
17739           <format>$1 $2</format>
17740         </numberFormat>
17741         <numberFormat pattern="(14)(\d{3,4})" nationalPrefixFormattingRule="$FG">
17742           <leadingDigits>14</leadingDigits>
17743           <format>$1 $2</format>
17744         </numberFormat>
17745         <numberFormat pattern="([89]0\d)(\d{4,7})">
17746           <leadingDigits>
17747             80|
17748             9
17749           </leadingDigits>
17750           <format>$1 $2</format>
17751         </numberFormat>
17752       </availableFormats>
17753       <generalDesc>
17754         <nationalNumberPattern>
17755           1\d{4,8}|
17756           [2-7]\d{8}|
17757           [89]\d{6,9}
17758         </nationalNumberPattern>
17759         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
17760       </generalDesc>
17761       <noInternationalDialling>
17762         <nationalNumberPattern>14\d{3,4}</nationalNumberPattern>
17763         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17764       </noInternationalDialling>
17765       <fixedLine>
17766         <nationalNumberPattern>
17767           (?:
17768             1[0135-8]|
17769             2[02-69]|
17770             3[0-68]|
17771             4[0135-9]|
17772             [57]\d|
17773             8[478]
17774           )\d{7}
17775         </nationalNumberPattern>
17776         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17777         <exampleNumber>101234567</exampleNumber>
17778       </fixedLine>
17779       <mobile>
17780         <nationalNumberPattern>6[1-58]\d{7}</nationalNumberPattern>
17781         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17782         <exampleNumber>612345678</exampleNumber>
17783       </mobile>
17784       <pager>
17785         <nationalNumberPattern>66\d{7}</nationalNumberPattern>
17786         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17787         <exampleNumber>662345678</exampleNumber>
17788       </pager>
17789       <tollFree>
17790         <nationalNumberPattern>800\d{4,7}</nationalNumberPattern>
17791         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17792         <exampleNumber>8001234</exampleNumber>
17793       </tollFree>
17794       <premiumRate>
17795         <nationalNumberPattern>90[069]\d{4,7}</nationalNumberPattern>
17796         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
17797         <exampleNumber>9001234</exampleNumber>
17798       </premiumRate>
17799       <voip>
17800         <nationalNumberPattern>85\d{7}</nationalNumberPattern>
17801         <possibleNumberPattern>\d{9}</possibleNumberPattern>
17802         <exampleNumber>851234567</exampleNumber>
17803       </voip>
17804       <uan>
17805         <!-- These numbers are used for local government. They are formed by the appending the local
17806              dialling code (including the national prefix 0) after the leading digits "14". -->
17807         <nationalNumberPattern>
17808           140(?:
17809             1(?:
17810               [035]|
17811               [16-8]\d
17812             )|
17813             2(?:
17814               [0346]|
17815               [259]\d
17816             )|
17817             3(?:
17818               [03568]|
17819               [124]\d
17820             )|
17821             4(?:
17822               [0356]|
17823               [17-9]\d
17824             )|
17825             5(?:
17826               [0358]|
17827               [124679]\d
17828             )|
17829             7\d|
17830             8[458]
17831           )
17832         </nationalNumberPattern>
17833         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
17834         <exampleNumber>14020</exampleNumber>
17835       </uan>
17836       <emergency>
17837         <nationalNumberPattern>
17838           112|
17839           911
17840         </nationalNumberPattern>
17841         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17842         <exampleNumber>112</exampleNumber>
17843       </emergency>
17844     </territory>
17845
17846     <!-- Norway -->
17847     <!-- Metadata (excluding fixed-line) shared with Svalbard. -->
17848     <!-- http://www.npt.no/npt/numsys/E.164.pdf -->
17849     <territory id="NO" countryCode="47" internationalPrefix="00" leadingZeroPossible="true"
17850                mainCountryForCode="true">
17851       <availableFormats>
17852         <numberFormat pattern="([489]\d{2})(\d{2})(\d{3})">
17853           <leadingDigits>[489]</leadingDigits>
17854           <format>$1 $2 $3</format>
17855         </numberFormat>
17856         <numberFormat pattern="([235-7]\d)(\d{2})(\d{2})(\d{2})">
17857           <leadingDigits>[235-7]</leadingDigits>
17858           <format>$1 $2 $3 $4</format>
17859         </numberFormat>
17860       </availableFormats>
17861       <generalDesc>
17862         <nationalNumberPattern>
17863           0\d{4}|
17864           [2-9]\d{7}
17865         </nationalNumberPattern>
17866         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
17867       </generalDesc>
17868       <fixedLine>
17869         <!-- Excludes Svalbard fixed-line numbers. -->
17870         <nationalNumberPattern>
17871           (?:
17872             2[1-4]|
17873             3[1-3578]|
17874             5[1-35-7]|
17875             6[1-4679]|
17876             7[0-8]
17877           )\d{6}
17878         </nationalNumberPattern>
17879         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17880         <exampleNumber>21234567</exampleNumber>
17881       </fixedLine>
17882       <mobile>
17883         <nationalNumberPattern>
17884           (?:
17885             4[015-8]|
17886             5[89]|
17887             9\d
17888           )\d{6}
17889         </nationalNumberPattern>
17890         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17891         <exampleNumber>41234567</exampleNumber>
17892       </mobile>
17893       <tollFree>
17894         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
17895         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17896         <exampleNumber>80012345</exampleNumber>
17897       </tollFree>
17898       <premiumRate>
17899         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
17900         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17901         <exampleNumber>82012345</exampleNumber>
17902       </premiumRate>
17903       <sharedCost>
17904         <nationalNumberPattern>
17905           810(?:
17906             0[0-6]|
17907             [2-8]\d
17908           )\d{3}
17909         </nationalNumberPattern>
17910         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17911         <exampleNumber>81021234</exampleNumber>
17912       </sharedCost>
17913       <personalNumber>
17914         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
17915         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17916         <exampleNumber>88012345</exampleNumber>
17917       </personalNumber>
17918       <voip>
17919         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
17920         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17921         <exampleNumber>85012345</exampleNumber>
17922       </voip>
17923       <uan>
17924         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
17925         <nationalNumberPattern>
17926           0\d{4}|
17927           81(?:
17928             0(?:
17929               0[7-9]|
17930               1\d
17931             )|
17932             5\d{2}
17933           )\d{3}
17934         </nationalNumberPattern>
17935         <exampleNumber>01234</exampleNumber>
17936       </uan>
17937       <voicemail>
17938         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
17939         <possibleNumberPattern>\d{8}</possibleNumberPattern>
17940         <exampleNumber>81212345</exampleNumber>
17941       </voicemail>
17942       <emergency>
17943         <nationalNumberPattern>11[023]</nationalNumberPattern>
17944         <possibleNumberPattern>\d{3}</possibleNumberPattern>
17945         <exampleNumber>112</exampleNumber>
17946       </emergency>
17947     </territory>
17948
17949     <!-- Nepal -->
17950     <!-- http://www.itu.int/oth/T0202000095/en -->
17951     <!-- http://www.ntc.net.np/mobile/mob_postpaid_number_scheme.php -->
17952     <territory id="NP" countryCode="977" internationalPrefix="00"
17953                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
17954       <availableFormats>
17955         <!-- Formatting patterns taken from pages like www.nepalgov.gov.np -->
17956         <numberFormat pattern="(1)(\d{7})">
17957           <leadingDigits>1[2-6]</leadingDigits>
17958           <format>$1-$2</format>
17959         </numberFormat>
17960         <numberFormat pattern="(\d{2})(\d{6})">
17961           <leadingDigits>
17962             1[01]|
17963             [2-8]|
17964             9(?:
17965               [1-69]|
17966               7[15-9]
17967             )
17968           </leadingDigits>
17969           <format>$1-$2</format>
17970         </numberFormat>
17971         <numberFormat pattern="(9\d{2})(\d{7})">
17972           <leadingDigits>
17973             9(?:
17974               7[45]|
17975               8
17976             )
17977             </leadingDigits>
17978           <format>$1-$2</format>
17979         </numberFormat>
17980       </availableFormats>
17981       <generalDesc>
17982         <!-- This is complex, in order to try and distinguish between numbers that start with 97 and
17983              numbers that have the country code prefixed. -->
17984         <nationalNumberPattern>
17985           [1-8]\d{7}|
17986           9(?:
17987             [1-69]\d{6}|
17988             7[2-6]\d{5,7}|
17989             8\d{8}
17990           )
17991         </nationalNumberPattern>
17992         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
17993       </generalDesc>
17994       <fixedLine>
17995         <!-- Added (1) 2XXXXXX and (88) from numbers found online. -->
17996         <nationalNumberPattern>
17997           (?:
17998             1[0124-6]|
17999             2[13-79]|
18000             3[135-8]|
18001             4[146-9]|
18002             5[135-7]|
18003             6[13-9]|
18004             7[15-9]|
18005             8[1-46-9]|
18006             9[1-79]
18007           )\d{6}
18008         </nationalNumberPattern>
18009         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
18010         <exampleNumber>14567890</exampleNumber>
18011       </fixedLine>
18012       <!-- There is no definitive source of information for mobile numbers in Nepal. The information
18013            here is collected by searching the Internet. -->
18014       <mobile>
18015         <nationalNumberPattern>
18016           9(?:
18017             7[45]|
18018             8[01456]
18019           )\d{7}
18020         </nationalNumberPattern>
18021         <possibleNumberPattern>\d{10}</possibleNumberPattern>
18022         <exampleNumber>9841234567</exampleNumber>
18023       </mobile>
18024       <!-- No information on other types of phone numbers for Nepal has been found. -->
18025       <emergency>
18026         <nationalNumberPattern>
18027           1(?:
18028             0[0-3]|
18029             12
18030           )
18031         </nationalNumberPattern>
18032         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18033         <exampleNumber>112</exampleNumber>
18034       </emergency>
18035     </territory>
18036
18037     <!-- Nauru -->
18038     <!-- http://www.itu.int/oth/T0202000094/en -->
18039     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Nauru -->
18040     <territory id="NR" countryCode="674" internationalPrefix="00">
18041       <availableFormats>
18042         <numberFormat pattern="(\d{3})(\d{4})">
18043           <format>$1 $2</format>
18044         </numberFormat>
18045       </availableFormats>
18046       <generalDesc>
18047         <nationalNumberPattern>[458]\d{6}</nationalNumberPattern>
18048         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18049       </generalDesc>
18050       <fixedLine>
18051         <nationalNumberPattern>
18052           (?:
18053             444|
18054             888
18055           )\d{4}
18056         </nationalNumberPattern>
18057         <exampleNumber>4441234</exampleNumber>
18058       </fixedLine>
18059       <mobile>
18060         <nationalNumberPattern>55[5-9]\d{4}</nationalNumberPattern>
18061         <exampleNumber>5551234</exampleNumber>
18062       </mobile>
18063       <emergency>
18064         <nationalNumberPattern>11[0-2]</nationalNumberPattern>
18065         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18066         <exampleNumber>110</exampleNumber>
18067       </emergency>
18068     </territory>
18069
18070     <!-- Niue -->
18071     <!-- http://www.itu.int/oth/T02020000EC/en -->
18072     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Niue -->
18073     <territory id="NU" countryCode="683" internationalPrefix="00">
18074       <!-- Numbers are always formatted as a block. -->
18075       <generalDesc>
18076         <nationalNumberPattern>[1-5]\d{3}</nationalNumberPattern>
18077         <possibleNumberPattern>\d{4}</possibleNumberPattern>
18078       </generalDesc>
18079       <fixedLine>
18080         <!-- Putting FWT (fixed-wireless-terminals) numbers here too. -->
18081         <nationalNumberPattern>[34]\d{3}</nationalNumberPattern>
18082         <exampleNumber>4002</exampleNumber>
18083       </fixedLine>
18084       <mobile>
18085         <nationalNumberPattern>[125]\d{3}</nationalNumberPattern>
18086         <exampleNumber>1234</exampleNumber>
18087       </mobile>
18088       <emergency>
18089         <nationalNumberPattern>999</nationalNumberPattern>
18090         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18091         <exampleNumber>999</exampleNumber>
18092       </emergency>
18093     </territory>
18094
18095     <!-- New Zealand -->
18096     <!-- http://www.itu.int/oth/T0202000099/en -->
18097     <!-- Includes Ross Dependency, Antarctica -->
18098     <!-- Does not currently support 083 "Enhanced voice services", New Zealand direct service
18099          numbers and 050 "Nation-Wide Service". -->
18100     <territory id="NZ" countryCode="64" internationalPrefix="0(?:0|161)"
18101                preferredInternationalPrefix="00" nationalPrefix="0"
18102                nationalPrefixFormattingRule="$NP$FG">
18103       <availableFormats>
18104         <!-- Pattern for fixed-line formats. -->
18105         <numberFormat pattern="([34679])(\d{3})(\d{4})">
18106           <leadingDigits>
18107             [3467]|
18108             9[1-9]
18109           </leadingDigits>
18110           <format>$1-$2 $3</format>
18111         </numberFormat>
18112         <!-- Area code for NZ's Scott Base, in Antarctica. -->
18113         <numberFormat pattern="(24099)(\d{3})">
18114           <leadingDigits>240</leadingDigits>
18115           <leadingDigits>2409</leadingDigits>
18116           <leadingDigits>24099</leadingDigits>
18117           <format>$1 $2</format>
18118         </numberFormat>
18119         <!-- Mobile numbers do not have exclusive leading digits - formatting depends on number
18120              length. -->
18121         <!-- Vodafone numbers can be 8 digits (without leading 0). -->
18122         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
18123           <leadingDigits>21</leadingDigits>
18124           <format>$1 $2 $3</format>
18125         </numberFormat>
18126         <!-- Paging numbers and some mobile numbers (Telecom/Vodafone/TelstraClear). -->
18127         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
18128           <leadingDigits>
18129             2(?:
18130               1[1-9]|
18131               [69]|
18132               7[0-35-9]
18133             )|
18134             86
18135           </leadingDigits>
18136           <format>$1 $2 $3</format>
18137         </numberFormat>
18138         <!-- 2Degrees numbers are formatted with 022 separated, since this seems to be more common
18139              than writing the first group as 022X based on Google web searches, and is used by
18140              2Degrees themselves. See formatting on www.2degreesmobile.co.nz for an example of the
18141              latter. We follow the same pattern for 020 (Orcon) and 028 (mixed) numbers. -->
18142         <numberFormat pattern="(2\d)(\d{3,4})(\d{4})">
18143           <leadingDigits>2[028]</leadingDigits>
18144           <format>$1 $2 $3</format>
18145         </numberFormat>
18146         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
18147           <!-- 0274, 0210 and toll-free/premium-rate prefixes 0508/0800/0900.  -->
18148           <leadingDigits>
18149             2(?:
18150               10|
18151               74
18152             )|
18153             5|
18154             [89]0
18155           </leadingDigits>
18156           <format>$1 $2 $3</format>
18157         </numberFormat>
18158       </availableFormats>
18159       <generalDesc>
18160         <nationalNumberPattern>
18161           6[235-9]\d{6}|
18162           [2-57-9]\d{7,10}
18163         </nationalNumberPattern>
18164         <possibleNumberPattern>\d{7,11}</possibleNumberPattern>
18165       </generalDesc>
18166       <fixedLine>
18167         <!-- 07 788 was assigned to Voxbox according to
18168              http://www.nad.org.nz/07GeographicalCodes.php -->
18169         <nationalNumberPattern>
18170           (?:
18171             3[2-79]|
18172             [49][2-689]|
18173             6[235-9]|
18174             7[2-5789]
18175           )\d{6}|
18176           24099\d{3}
18177         </nationalNumberPattern>
18178         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18179         <exampleNumber>32345678</exampleNumber>
18180       </fixedLine>
18181       <mobile>
18182         <!-- Includes mobile radio service numbers (e.g. TeamTalk). -->
18183         <nationalNumberPattern>
18184           2(?:
18185             [028]\d{7,8}|
18186             1(?:
18187               0\d{5,7}|
18188               [12]\d{5,6}|
18189               [3-9]\d{5}
18190             )|
18191             [79]\d{7}
18192           )
18193         </nationalNumberPattern>
18194         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
18195         <exampleNumber>211234567</exampleNumber>
18196       </mobile>
18197       <pager>
18198         <nationalNumberPattern>[28]6\d{6,7}</nationalNumberPattern>
18199         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
18200         <exampleNumber>26123456</exampleNumber>
18201       </pager>
18202       <!-- These are the toll free patterns used, by Telecom and Telstra/Clear, but they are
18203            referred to as 'Value-added service' in the phone plan for some reason. 85 numbers are
18204            not covered, as telecom companies don't seem to support them yet. -->
18205       <tollFree>
18206         <nationalNumberPattern>
18207           508\d{6,7}|
18208           80\d{6,8}
18209         </nationalNumberPattern>
18210         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
18211         <exampleNumber>800123456</exampleNumber>
18212       </tollFree>
18213       <premiumRate>
18214         <nationalNumberPattern>90\d{7,9}</nationalNumberPattern>
18215         <possibleNumberPattern>\d{9,11}</possibleNumberPattern>
18216         <exampleNumber>900123456</exampleNumber>
18217       </premiumRate>
18218       <emergency>
18219         <nationalNumberPattern>111</nationalNumberPattern>
18220         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18221         <exampleNumber>111</exampleNumber>
18222       </emergency>
18223     </territory>
18224
18225     <!-- Oman -->
18226     <!-- http://www.itu.int/oth/T020200009F/en -->
18227     <territory id="OM" countryCode="968" internationalPrefix="00" >
18228       <availableFormats>
18229         <numberFormat pattern="(2\d)(\d{6})">
18230           <leadingDigits>2</leadingDigits>
18231           <format>$1 $2</format>
18232         </numberFormat>
18233         <numberFormat pattern="(9\d{3})(\d{4})">
18234           <leadingDigits>9</leadingDigits>
18235           <format>$1 $2</format>
18236         </numberFormat>
18237         <numberFormat pattern="([58]00)(\d{4,6})">
18238           <leadingDigits>[58]</leadingDigits>
18239           <format>$1 $2</format>
18240         </numberFormat>
18241       </availableFormats>
18242       <generalDesc>
18243         <nationalNumberPattern>
18244           (?:
18245             2[2-6]|
18246             5|
18247             9[1-9]
18248           )\d{6}|
18249           800\d{5,6}
18250         </nationalNumberPattern>
18251         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
18252       </generalDesc>
18253       <fixedLine>
18254         <nationalNumberPattern>2[2-6]\d{6}</nationalNumberPattern>
18255         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18256         <exampleNumber>23123456</exampleNumber>
18257       </fixedLine>
18258       <mobile>
18259         <nationalNumberPattern>9[1-9]\d{6}</nationalNumberPattern>
18260         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18261         <exampleNumber>92123456</exampleNumber>
18262       </mobile>
18263       <tollFree>
18264         <!-- Link to document about toll-free numbers on www.tra.gov.om, which suggests they should
18265              be 8007 followed by 4 digits. However, the only examples I can find, including the
18266              customer help line for the main telephony company there (omantel), is 8007 followed by
18267              5 digits, so am allowing both for now to be on the safe side. 500 numbers seem to offer
18268              international toll-free dialing numbers - +968 500 1300 for international help desk for
18269              omantel, for example. -->
18270         <nationalNumberPattern>
18271           8007\d{4,5}|
18272           500\d{4}
18273         </nationalNumberPattern>
18274         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
18275         <exampleNumber>80071234</exampleNumber>
18276       </tollFree>
18277       <!-- No premiumRate information can be found. -->
18278       <emergency>
18279         <nationalNumberPattern>9999</nationalNumberPattern>
18280         <possibleNumberPattern>\d{4}</possibleNumberPattern>
18281         <exampleNumber>9999</exampleNumber>
18282       </emergency>
18283     </territory>
18284
18285     <!-- Panama -->
18286     <!-- http://www.asep.gob.pa/telecom/pnn/default.asp - last read Jan 17th 2013. -->
18287     <!-- http://en.wikipedia.org/wiki/%2B507 - although it omits the fact that mobile phones are 8
18288          digits long. -->
18289     <territory id="PA" countryCode="507" internationalPrefix="00">
18290       <availableFormats>
18291         <numberFormat pattern="(\d{3})(\d{4})">
18292           <leadingDigits>[1-57-9]</leadingDigits>
18293           <format>$1-$2</format>
18294         </numberFormat>
18295         <numberFormat pattern="(\d{4})(\d{4})">
18296           <leadingDigits>6</leadingDigits>
18297           <format>$1-$2</format>
18298         </numberFormat>
18299       </availableFormats>
18300       <generalDesc>
18301         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18302         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18303       </generalDesc>
18304       <!-- Note that numbers starting with 101, 106, 131, 151, 156 and 168 have not been assigned to
18305            any rule below since we are not sure what the "servicios 102/103" refer to here. -->
18306       <fixedLine>
18307         <!-- Note that "servicios 101/104" in the plan refer to "Local Basic Communications Service"
18308              and "Public and Semipublic Terminal Service", represented here as fixed-line. -->
18309         <!-- The range 194-XXXX has been added since a number was found online with this prefix and
18310              proved to be diallable. -->
18311         <nationalNumberPattern>
18312           (?:
18313             1(?:
18314               0[02-579]|
18315               19|
18316               2[37]|
18317               3[03]|
18318               4[479]|
18319               57|
18320               65|
18321               7[016-8]|
18322               8[58]|
18323               9[134]
18324             )|
18325             2(?:
18326               [0235679]\d|
18327               1[0-7]|
18328               4[04-9]|
18329               8[028]
18330             )|
18331             3(?:
18332               0[0-7]|
18333               1[14-7]|
18334               2[0-3]|
18335               3[03]|
18336               4[0457]|
18337               5[56]|
18338               6[068]|
18339               7[078]|
18340               80|
18341               9\d
18342             )|
18343             4(?:
18344               3[013-59]|
18345               4\d|
18346               7[0-689]
18347             )|
18348             5(?:
18349               [01]\d|
18350               2[0-7]|
18351               [56]0|
18352               79
18353             )|
18354             7(?:
18355               0[09]|
18356               2[0-267]|
18357               [349]0|
18358               5[6-9]|
18359               7[0-24-7]|
18360               8[89]
18361             )|
18362             8(?:
18363               [34]\d|
18364               5[0-4]|
18365               8[02]
18366             )|
18367             9(?:
18368               0[78]|
18369               1[0178]|
18370               2[0378]|
18371               3[379]|
18372               40|
18373               5[0489]|
18374               6[06-9]|
18375               7[046-9]|
18376               8[36-8]|
18377               9[1-9]
18378             )
18379           )\d{4}
18380         </nationalNumberPattern>
18381         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18382         <exampleNumber>2001234</exampleNumber>
18383       </fixedLine>
18384       <mobile>
18385         <!-- Note that "servicios 106/107" in the plan refer to mobile services. We also include
18386              service "210", "Servicio de Busca Personas". -->
18387         <nationalNumberPattern>
18388           (?:
18389             1[16]1|
18390             21[89]|
18391             8(?:
18392               1[01]|
18393               7[23]
18394             )
18395           )\d{4}|
18396           6(?:
18397             [04-9]\d|
18398             1[0-5]|
18399             2[0-7]|
18400             3[5-9]
18401           )\d{5}
18402         </nationalNumberPattern>
18403         <exampleNumber>60012345</exampleNumber>
18404       </mobile>
18405       <tollFree>
18406         <nationalNumberPattern>80[09]\d{4}</nationalNumberPattern>
18407         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18408         <exampleNumber>8001234</exampleNumber>
18409       </tollFree>
18410       <premiumRate>
18411         <!-- Value-added services are represented as "400" in the plan. -->
18412         <nationalNumberPattern>
18413           (?:
18414             779|
18415             8(?:
18416               2[235]|
18417               55|
18418               60|
18419               7[578]|
18420               86|
18421               95
18422             )|
18423             9(?:
18424               0[0-2]|
18425               81
18426             )
18427           )\d{4}
18428         </nationalNumberPattern>
18429         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18430         <exampleNumber>8601234</exampleNumber>
18431       </premiumRate>
18432       <emergency>
18433         <nationalNumberPattern>911</nationalNumberPattern>
18434         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18435         <exampleNumber>911</exampleNumber>
18436       </emergency>
18437     </territory>
18438
18439     <!-- Peru -->
18440     <!-- http://www.itu.int/oth/T02020000A6/en -->
18441     <!-- http://en.wikipedia.org/wiki/+51 -->
18442     <!-- http://www.assistbook.com/South%20America/Peru/widecodes -->
18443     <territory id="PE" countryCode="51" internationalPrefix="19(?:1[124]|77|90)00"
18444                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)"
18445                preferredExtnPrefix=" Anexo ">
18446       <availableFormats>
18447         <numberFormat pattern="(1)(\d{7})">
18448           <leadingDigits>1</leadingDigits>
18449           <format>$1 $2</format>
18450         </numberFormat>
18451         <numberFormat pattern="([4-8]\d)(\d{6})">
18452           <leadingDigits>
18453             [4-7]|
18454             8[2-4]
18455           </leadingDigits>
18456           <format>$1 $2</format>
18457         </numberFormat>
18458         <numberFormat pattern="(\d{3})(\d{5})">
18459           <leadingDigits>80</leadingDigits>
18460           <format>$1 $2</format>
18461         </numberFormat>
18462         <!-- Formatting from common usage found on the internet, supported by ITU doc. -->
18463         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"
18464                       nationalPrefixFormattingRule="$FG">
18465           <leadingDigits>9</leadingDigits>
18466           <format>$1 $2 $3</format>
18467         </numberFormat>
18468       </availableFormats>
18469       <generalDesc>
18470         <nationalNumberPattern>[14-9]\d{7,8}</nationalNumberPattern>
18471         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
18472       </generalDesc>
18473       <fixedLine>
18474         <nationalNumberPattern>
18475           (?:
18476             1\d|
18477             4[1-4]|
18478             5[1-46]|
18479             6[1-7]|
18480             7[2-46]|
18481             8[2-4]
18482           )\d{6}
18483         </nationalNumberPattern>
18484         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
18485         <exampleNumber>11234567</exampleNumber>
18486       </fixedLine>
18487       <mobile>
18488         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
18489         <possibleNumberPattern>\d{9}</possibleNumberPattern>
18490         <exampleNumber>912345678</exampleNumber>
18491       </mobile>
18492       <tollFree>
18493         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
18494         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18495         <exampleNumber>80012345</exampleNumber>
18496       </tollFree>
18497       <premiumRate>
18498         <nationalNumberPattern>805\d{5}</nationalNumberPattern>
18499         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18500         <exampleNumber>80512345</exampleNumber>
18501       </premiumRate>
18502       <sharedCost>
18503         <nationalNumberPattern>801\d{5}</nationalNumberPattern>
18504         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18505         <exampleNumber>80112345</exampleNumber>
18506       </sharedCost>
18507       <personalNumber>
18508         <nationalNumberPattern>80[24]\d{5}</nationalNumberPattern>
18509         <possibleNumberPattern>\d{8}</possibleNumberPattern>
18510         <exampleNumber>80212345</exampleNumber>
18511       </personalNumber>
18512       <emergency>
18513         <nationalNumberPattern>
18514           1(?:
18515             05|
18516             1[67]
18517           )
18518         </nationalNumberPattern>
18519         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18520         <exampleNumber>105</exampleNumber>
18521       </emergency>
18522     </territory>
18523
18524     <!-- French Polynesia (Tahiti) (Territoire français d'outre-mer) -->
18525     <!-- http://www.itu.int/oth/T020200004D/en -->
18526     <territory id="PF" countryCode="689" internationalPrefix="00">
18527       <availableFormats>
18528         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
18529           <leadingDigits>89</leadingDigits>
18530           <format>$1 $2 $3 $4</format>
18531         </numberFormat>
18532         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
18533           <format>$1 $2 $3</format>
18534         </numberFormat>
18535       </availableFormats>
18536       <generalDesc>
18537         <nationalNumberPattern>
18538           [2-79]\d{5}|
18539           8\d{5,7}
18540         </nationalNumberPattern>
18541         <possibleNumberPattern>\d{6}(?:\d{2})?</possibleNumberPattern>
18542       </generalDesc>
18543       <noInternationalDialling>
18544         <nationalNumberPattern>44\d{4}</nationalNumberPattern>
18545         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18546         <exampleNumber>441234</exampleNumber>
18547       </noInternationalDialling>
18548       <fixedLine>
18549         <!-- Includes "voice-server" prefixes and pay-phone. The 41 range has been made more
18550              specific to exclude Mobile MSRN. -->
18551         <nationalNumberPattern>
18552           (?:
18553             4(?:
18554               [02-9]\d|
18555               1[02-9]
18556             )|
18557             [5689]\d{2}
18558           )\d{3}
18559         </nationalNumberPattern>
18560         <possibleNumberPattern>\d{6}</possibleNumberPattern>
18561         <exampleNumber>401234</exampleNumber>
18562       </fixedLine>
18563       <mobile>
18564         <nationalNumberPattern>
18565           (?:
18566             [27]\d{2}|
18567             3[0-79]\d|
18568             411|
18569             89\d{3}
18570           )\d{3}
18571         </nationalNumberPattern>
18572         <exampleNumber>212345</exampleNumber>
18573       </mobile>
18574       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
18575       <emergency>
18576         <nationalNumberPattern>1[578]</nationalNumberPattern>
18577         <possibleNumberPattern>\d{2}</possibleNumberPattern>
18578         <exampleNumber>15</exampleNumber>
18579       </emergency>
18580     </territory>
18581
18582     <!-- Papua New Guinea -->
18583     <!-- http://www.itu.int/oth/T02020000A4/en -->
18584     <!-- http://en.wikipedia.org/wiki/%2B675 -->
18585     <territory id="PG" countryCode="675" internationalPrefix="00">
18586       <availableFormats>
18587         <numberFormat pattern="(\d{3})(\d{4})">
18588           <leadingDigits>[1-689]</leadingDigits>
18589           <format>$1 $2</format>
18590         </numberFormat>
18591         <numberFormat pattern="(7\d{2})(\d{2})(\d{3})">
18592           <leadingDigits>7</leadingDigits>
18593           <format>$1 $2 $3</format>
18594         </numberFormat>
18595       </availableFormats>
18596       <generalDesc>
18597         <nationalNumberPattern>[1-9]\d{6,7}</nationalNumberPattern>
18598         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18599       </generalDesc>
18600       <fixedLine>
18601         <!-- Fixed line patterns are from the numbering plan, with additions for 4XX since many
18602              numbers in the yellow pages seem to be outside the 47X range prescribed by the plan.
18603              The same applies to extra 64X numbers. -->
18604         <nationalNumberPattern>
18605           (?:
18606             3\d{2}|
18607             4[257]\d|
18608             5[34]\d|
18609             6(?:
18610               29|
18611               4[1-9]
18612             )|
18613             85[02-46-9]|
18614             9[78]\d
18615           )\d{4}
18616         </nationalNumberPattern>
18617         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18618         <exampleNumber>3123456</exampleNumber>
18619       </fixedLine>
18620       <mobile>
18621         <!-- Mobile number patterns from the numbering plan are included here, as well as 68X from
18622              Wikipedia and 730 from online numbers. The prefix 70X is added since open-source users
18623              have reported it as now being in use, although no real numbers can be found as of yet.
18624              -->
18625         <nationalNumberPattern>
18626           (?:
18627             68|
18628             7[0-36]\d
18629           )\d{5}
18630         </nationalNumberPattern>
18631         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
18632         <exampleNumber>6812345</exampleNumber>
18633       </mobile>
18634       <tollFree>
18635         <nationalNumberPattern>180\d{4}</nationalNumberPattern>
18636         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18637         <exampleNumber>1801234</exampleNumber>
18638       </tollFree>
18639       <voip>
18640         <!-- VSAT prefixes are here. -->
18641         <nationalNumberPattern>275\d{4}</nationalNumberPattern>
18642         <possibleNumberPattern>\d{7}</possibleNumberPattern>
18643         <exampleNumber>2751234</exampleNumber>
18644       </voip>
18645       <emergency>
18646         <!-- http://www.pngbd.com/emergency.php has been used, excluding fixed-line phone-numbers.
18647              -->
18648         <nationalNumberPattern>000</nationalNumberPattern>
18649         <possibleNumberPattern>\d{3}</possibleNumberPattern>
18650         <exampleNumber>000</exampleNumber>
18651       </emergency>
18652     </territory>
18653
18654     <!-- Philippines -->
18655     <!-- http://en.wikipedia.org/wiki/%2B63 -->
18656   <territory id="PH" countryCode="63" internationalPrefix="00" nationalPrefix="0">
18657     <availableFormats>
18658       <!--Area code separated from number. Area codes found here:
18659       http://en.wikipedia.org/wiki/Telecommunications_in_the_Philippines#Area_Codes -->
18660       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18661         pattern="(2)(\d{3})(\d{4})">
18662         <leadingDigits>2</leadingDigits>
18663         <format>$1 $2 $3</format>
18664       </numberFormat>
18665       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18666         pattern="(2)(\d{5})">
18667         <leadingDigits>2</leadingDigits>
18668         <format>$1 $2</format>
18669       </numberFormat>
18670       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18671         pattern="(\d{4})(\d{4,6})">
18672         <leadingDigits>
18673           3(?:
18674             23|
18675             39|
18676             46
18677           )|
18678           4(?:
18679             2[3-6]|
18680             [35]9|
18681             4[26]|
18682             76
18683           )|
18684           5(?:
18685             22|
18686             44
18687           )|
18688           642|
18689           8(?:
18690             62|
18691             8[245]
18692           )
18693         </leadingDigits>
18694         <leadingDigits>
18695           3(?:
18696             230|
18697             397|
18698             461
18699           )|
18700           4(?:
18701             2(?:
18702               35|
18703               [46]4|
18704               51
18705             )|
18706             396|
18707             4(?:
18708               22|
18709               63
18710             )|
18711             59[347]|
18712             76[15]
18713           )|
18714           5(?:
18715             221|
18716             446
18717           )|
18718           642[23]|
18719           8(?:
18720             622|
18721             8(?:
18722               [24]2|
18723               5[13]
18724             )
18725           )
18726         </leadingDigits>
18727         <format>$1 $2</format>
18728       </numberFormat>
18729       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18730         pattern="(\d{5})(\d{4})">
18731         <leadingDigits>
18732           346|
18733           4(?:
18734             27|
18735             9[35]
18736           )|
18737           883
18738         </leadingDigits>
18739         <leadingDigits>
18740           3469|
18741           4(?:
18742             279|
18743             9(?:
18744               30|
18745               56
18746             )
18747           )|
18748           8834
18749         </leadingDigits>
18750         <format>$1 $2</format>
18751       </numberFormat>
18752       <!-- This rule is a fallback for the more specific area codes. -->
18753       <numberFormat nationalPrefixFormattingRule="($NP$FG)"
18754         pattern="([3-8]\d)(\d{3})(\d{4})">
18755         <leadingDigits>[3-8]</leadingDigits>
18756         <format>$1 $2 $3</format>
18757       </numberFormat>
18758       <numberFormat nationalPrefixFormattingRule="$NP$FG"
18759         pattern="(\d{3})(\d{3})(\d{4})">
18760         <leadingDigits>
18761           81|
18762           9
18763         </leadingDigits>
18764         <format>$1 $2 $3</format>
18765       </numberFormat>
18766       <!-- Formatting from http://www.uniontelecard.com/calling-guides/philippines/guide1.aspx -->
18767       <numberFormat pattern="(1800)(\d{3})(\d{4})">
18768         <leadingDigits>1</leadingDigits>
18769         <format>$1 $2 $3</format>
18770       </numberFormat>
18771       <numberFormat pattern="(1800)(\d{1,2})(\d{3})(\d{4})">
18772         <leadingDigits>1</leadingDigits>
18773         <format>$1 $2 $3 $4</format>
18774       </numberFormat>
18775     </availableFormats>
18776     <generalDesc>
18777       <nationalNumberPattern>
18778         2\d{5,7}|
18779         [3-9]\d{7,9}|
18780         1800\d{7,9}
18781       </nationalNumberPattern>
18782       <possibleNumberPattern>\d{5,13}</possibleNumberPattern>
18783     </generalDesc>
18784     <fixedLine>
18785       <!-- Evidence on number length is hard to come by. We have found diallable numbers in Manila
18786            that have only 5 digits after the area code; plus it seems the 8822 area code is followed
18787            by 6 digits, and 8842 by only 4. -->
18788       <nationalNumberPattern>
18789         2\d{5}(?:\d{2})?|
18790         (?:
18791           3[2-68]|
18792           4[2-9]|
18793           5[2-6]|
18794           6[2-58]|
18795           7[24578]|
18796           8[2-8]
18797         )\d{7}|
18798         88(?:
18799           22\d{6}|
18800           42\d{4}
18801         )
18802       </nationalNumberPattern>
18803       <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
18804       <exampleNumber>21234567</exampleNumber>
18805     </fixedLine>
18806     <mobile>
18807       <nationalNumberPattern>
18808         (?:
18809           81[37]|
18810           9(?:
18811             0[5-9]|
18812             1[025-9]|
18813             2[0-35-9]|
18814             3[02-9]|
18815             4[236-9]|
18816             7[3479]|
18817             89|
18818             9[46-9]
18819           )
18820         )\d{7}
18821       </nationalNumberPattern>
18822       <possibleNumberPattern>\d{10}</possibleNumberPattern>
18823       <exampleNumber>9051234567</exampleNumber>
18824     </mobile>
18825     <!-- Information on toll-free numbers collected from searching the internet -->
18826     <tollFree>
18827       <nationalNumberPattern>1800\d{7,9}</nationalNumberPattern>
18828       <possibleNumberPattern>\d{11,13}</possibleNumberPattern>
18829       <exampleNumber>180012345678</exampleNumber>
18830     </tollFree>
18831     <!-- No information can be found about other types of numbers (such as premium rate) in the
18832          Philippines. -->
18833     <emergency>
18834       <nationalNumberPattern>
18835         11[27]|
18836         911
18837       </nationalNumberPattern>
18838       <possibleNumberPattern>\d{3}</possibleNumberPattern>
18839       <exampleNumber>117</exampleNumber>
18840     </emergency>
18841   </territory>
18842
18843   <!-- Pakistan -->
18844   <!-- http://www.itu.int/oth/T02020000A1/en -->
18845   <!-- http://en.wikipedia.org/wiki/%2B92 -->
18846     <territory id="PK" countryCode="92" internationalPrefix="00"
18847                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
18848       <availableFormats>
18849         <!-- Universal Access Numbers (UAN) number format patterns first, so that these numbers are
18850              formatted nicely by the AYTF. -->
18851         <numberFormat pattern="(\d{2})(111)(\d{3})(\d{3})">
18852           <leadingDigits>
18853             (?:
18854               2[125]|
18855               4[0-246-9]|
18856               5[1-35-7]|
18857               6[1-8]|
18858               7[14]|
18859               8[16]|
18860               91
18861             )1
18862           </leadingDigits>
18863           <leadingDigits>
18864             (?:
18865               2[125]|
18866               4[0-246-9]|
18867               5[1-35-7]|
18868               6[1-8]|
18869               7[14]|
18870               8[16]|
18871               91
18872             )11
18873           </leadingDigits>
18874           <leadingDigits>
18875             (?:
18876               2[125]|
18877               4[0-246-9]|
18878               5[1-35-7]|
18879               6[1-8]|
18880               7[14]|
18881               8[16]|
18882               91
18883             )111
18884           </leadingDigits>
18885           <format>$1 $2 $3 $4</format>
18886         </numberFormat>
18887         <numberFormat pattern="(\d{3})(111)(\d{3})(\d{3})">
18888           <leadingDigits>
18889             2[349]|
18890             45|
18891             54|
18892             60|
18893             72|
18894             8[2-5]|
18895             9[2-9]
18896           </leadingDigits>
18897           <leadingDigits>
18898             (?:
18899               2[349]|
18900               45|
18901               54|
18902               60|
18903               72|
18904               8[2-5]|
18905               9[2-9]
18906             )\d1
18907           </leadingDigits>
18908           <leadingDigits>
18909             (?:
18910               2[349]|
18911               45|
18912               54|
18913               60|
18914               72|
18915               8[2-5]|
18916               9[2-9]
18917             )\d11
18918           </leadingDigits>
18919           <leadingDigits>
18920             (?:
18921               2[349]|
18922               45|
18923               54|
18924               60|
18925               72|
18926               8[2-5]|
18927               9[2-9]
18928             )\d111
18929           </leadingDigits>
18930           <format>$1 $2 $3 $4</format>
18931         </numberFormat>
18932         <numberFormat pattern="(\d{2})(\d{7,8})">
18933           <leadingDigits>
18934             (?:
18935               2[125]|
18936               4[0-246-9]|
18937               5[1-35-7]|
18938               6[1-8]|
18939               7[14]|
18940               8[16]|
18941               91
18942             )[2-9]
18943           </leadingDigits>
18944           <format>$1 $2</format>
18945         </numberFormat>
18946         <numberFormat pattern="(\d{3})(\d{6,7})">
18947           <leadingDigits>
18948             2[349]|
18949             45|
18950             54|
18951             60|
18952             72|
18953             8[2-5]|
18954             9[2-9]
18955           </leadingDigits>
18956           <leadingDigits>
18957             (?:
18958               2[349]|
18959               45|
18960               54|
18961               60|
18962               72|
18963               8[2-5]|
18964               9[2-9]
18965             )\d[2-9]
18966           </leadingDigits>
18967           <format>$1 $2</format>
18968         </numberFormat>
18969         <numberFormat pattern="(3\d{2})(\d{7})" nationalPrefixFormattingRule="$NP$FG">
18970           <leadingDigits>3</leadingDigits>
18971           <format>$1 $2</format>
18972         </numberFormat>
18973         <numberFormat pattern="([15]\d{3})(\d{5,6})">
18974           <leadingDigits>
18975             58[12]|
18976             1
18977           </leadingDigits>
18978           <format>$1 $2</format>
18979         </numberFormat>
18980         <!-- This is from online examples. -->
18981         <numberFormat pattern="(586\d{2})(\d{5})">
18982           <leadingDigits>586</leadingDigits>
18983           <format>$1 $2</format>
18984         </numberFormat>
18985         <numberFormat pattern="([89]00)(\d{3})(\d{2})" nationalPrefixFormattingRule="$NP$FG">
18986           <leadingDigits>[89]00</leadingDigits>
18987           <format>$1 $2 $3</format>
18988         </numberFormat>
18989       </availableFormats>
18990       <generalDesc>
18991         <!-- This is horribly complex because the country code is 92, and several area codes start
18992              with 92, and the number length is widely variable. -->
18993         <nationalNumberPattern>
18994           1\d{8}|
18995           [2-8]\d{5,11}|
18996           9(?:
18997             [013-9]\d{4,9}|
18998             2\d(?:
18999               111\d{6}|
19000               \d{3,7}
19001             )
19002           )
19003         </nationalNumberPattern>
19004         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
19005       </generalDesc>
19006       <fixedLine>
19007         <!-- The subscriber number length is not well defined for some area codes. From online
19008              examples, we have come up with a heuristic that for 3-digit area codes, the subscriber
19009              number will be 6 or 7 digits - for 2-digit area codes it will be 7, with the exceptions
19010              of Karachi and Lahore (both 8). -->
19011         <nationalNumberPattern>
19012           (?:
19013             21|
19014             42
19015           )[2-9]\d{7}|
19016           (?:
19017             2[25]|
19018             4[0146-9]|
19019             5[1-35-7]|
19020             6[1-8]|
19021             7[14]|
19022             8[16]|
19023             91
19024           )[2-9]\d{6}|
19025           (?:
19026             2(?:
19027               3[2358]|
19028               4[2-4]|
19029               9[2-8]
19030             )|
19031             45[3479]|
19032             54[2-467]|
19033             60[468]|
19034             72[236]|
19035             8(?:
19036               2[2-689]|
19037               3[23578]|
19038               4[3478]|
19039               5[2356]
19040             )|
19041             9(?:
19042               1|
19043               2[2-8]|
19044               3[27-9]|
19045               4[2-6]|
19046               6[3569]|
19047               9[25-8]
19048             )
19049           )[2-9]\d{5,6}|
19050           58[126]\d{7}
19051         </nationalNumberPattern>
19052         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
19053         <exampleNumber>2123456789</exampleNumber>
19054       </fixedLine>
19055       <mobile>
19056         <!-- Adding 311, 325 and 320 as SMSs have been successfully sent to these numbers and numbers
19057              can be found online with these prefixes. -->
19058         <nationalNumberPattern>
19059           3(?:
19060             0\d|
19061             1[1-5]|
19062             2[0-5]|
19063             3[1-6]|
19064             4[1-7]|
19065             55|
19066             64
19067           )\d{7}
19068         </nationalNumberPattern>
19069         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19070         <exampleNumber>3012345678</exampleNumber>
19071       </mobile>
19072       <tollFree>
19073         <nationalNumberPattern>800\d{5}</nationalNumberPattern>
19074         <possibleNumberPattern>\d{8}</possibleNumberPattern>
19075         <exampleNumber>80012345</exampleNumber>
19076       </tollFree>
19077       <premiumRate>
19078         <nationalNumberPattern>900\d{5}</nationalNumberPattern>
19079         <possibleNumberPattern>\d{8}</possibleNumberPattern>
19080         <exampleNumber>90012345</exampleNumber>
19081       </premiumRate>
19082       <!-- These are referred to as UPT numbers in the plan. -->
19083       <personalNumber>
19084         <nationalNumberPattern>122\d{6}</nationalNumberPattern>
19085         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19086         <!-- The example number here is the test number from the plan. -->
19087         <exampleNumber>122044444</exampleNumber>
19088       </personalNumber>
19089       <uan>
19090         <!-- Data on what a UAN is is hard to come by. http://www.ptcl.com.pk has information under
19091              http://www.ptcl.com.pk/contentb.php?NID=143#uan - which defines their format - but not
19092              what type of number they are.  We exclude Azad Jammu, Kashmir and Northern Areas here
19093              since no online example UANs can be found, and they have an "access code" at the start,
19094              making it difficult to guess what a UAN in these areas would look like. -->
19095         <nationalNumberPattern>
19096           (?:
19097             2(?:
19098               [125]|
19099               3[2358]|
19100               4[2-4]|
19101               9[2-8]
19102             )|
19103             4(?:
19104               [0-246-9]|
19105               5[3479]
19106             )|
19107             5(?:
19108               [1-35-7]|
19109               4[2-467]
19110             )|
19111             6(?:
19112               [1-8]|
19113               0[468]
19114             )|
19115             7(?:
19116               [14]|
19117               2[236]
19118             )|
19119             8(?:
19120               [16]|
19121               2[2-689]|
19122               3[23578]|
19123               4[3478]|
19124               5[2356]
19125             )|
19126             9(?:
19127               1|
19128               22|
19129               3[27-9]|
19130               4[2-6]|
19131               6[3569]|
19132               9[2-7]
19133             )
19134           )111\d{6}
19135         </nationalNumberPattern>
19136         <possibleNumberPattern>\d{11,12}</possibleNumberPattern>
19137         <exampleNumber>21111825888</exampleNumber>
19138       </uan>
19139       <emergency>
19140         <nationalNumberPattern>
19141           1(?:
19142             1(?:
19143               22?|
19144               5
19145             )|
19146             [56]
19147           )
19148         </nationalNumberPattern>
19149         <possibleNumberPattern>\d{2,4}</possibleNumberPattern>
19150         <exampleNumber>112</exampleNumber>
19151       </emergency>
19152     </territory>
19153
19154     <!-- Poland -->
19155     <!-- http://en.wikipedia.org/wiki/%2B48 -->
19156     <!-- http://www.itu.int/oth/T02020000A8/en -->
19157     <!--
19158     http://www.uke.gov.pl/uke/index.jsp?place=Lead24&news_cat_id=277&news_id=3791&layout=9&page=text
19159     (in Polish) -->
19160     <territory id="PL" countryCode="48" internationalPrefix="00">
19161       <availableFormats>
19162         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
19163           <leadingDigits>
19164             [124]|
19165             3[2-4]|
19166             5[24-689]|
19167             6[1-3578]|
19168             7[14-7]|
19169             8[1-79]|
19170             9[145]
19171           </leadingDigits>
19172           <format>$1 $2 $3 $4</format>
19173         </numberFormat>
19174         <numberFormat pattern="(\d{2})(\d{4,6})">
19175           <!-- Pattern for shorter fixed-line numbers. -->
19176           <leadingDigits>
19177             [124]|
19178             3[2-4]|
19179             5[24-689]|
19180             6[1-3578]|
19181             7[14-7]|
19182             8[1-7]
19183           </leadingDigits>
19184           <format>$1 $2</format>
19185         </numberFormat>
19186         <!-- We are formatting 70 numbers as per mobile numbers, based on information from some
19187              Poles that this is more usual. -->
19188         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19189           <leadingDigits>
19190             39|
19191             5[013]|
19192             6[0469]|
19193             7[02389]|
19194             8[08]
19195           </leadingDigits>
19196           <format>$1 $2 $3</format>
19197         </numberFormat>
19198         <!-- Additional patterns for shorter pager numbers. -->
19199         <numberFormat pattern="(\d{3})(\d{2})(\d{2,3})">
19200           <leadingDigits>64</leadingDigits>
19201           <format>$1 $2 $3</format>
19202         </numberFormat>
19203         <numberFormat pattern="(\d{3})(\d{3})">
19204           <leadingDigits>64</leadingDigits>
19205           <format>$1 $2</format>
19206         </numberFormat>
19207       </availableFormats>
19208       <generalDesc>
19209         <nationalNumberPattern>
19210           [1-58]\d{6,8}|
19211           9\d{8}|
19212           [67]\d{5,8}
19213         </nationalNumberPattern>
19214         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19215       </generalDesc>
19216       <fixedLine>
19217         <!-- Grouped by prefix-length. -->
19218         <nationalNumberPattern>
19219           (?:
19220             1[2-8]|
19221             2[2-59]|
19222             3[2-4]|
19223             4[1-468]|
19224             5[24-689]|
19225             6[1-3578]|
19226             7[14-6]|
19227             8[1-7]
19228           )\d{5,7}|
19229           77\d{4,7}|
19230           (?:
19231             89|
19232             9[145]
19233           )\d{7}
19234         </nationalNumberPattern>
19235         <exampleNumber>123456789</exampleNumber>
19236       </fixedLine>
19237       <mobile>
19238         <nationalNumberPattern>
19239           (?:
19240             5[013]|
19241             6[069]|
19242             7[2389]|
19243             88
19244           )\d{7}
19245         </nationalNumberPattern>
19246         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19247         <exampleNumber>512345678</exampleNumber>
19248       </mobile>
19249       <pager>
19250         <nationalNumberPattern>642\d{3,6}</nationalNumberPattern>
19251         <exampleNumber>642123456</exampleNumber>
19252       </pager>
19253       <tollFree>
19254         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19255         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19256         <exampleNumber>800123456</exampleNumber>
19257       </tollFree>
19258       <premiumRate>
19259         <nationalNumberPattern>70\d{7}</nationalNumberPattern>
19260         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19261         <exampleNumber>701234567</exampleNumber>
19262       </premiumRate>
19263       <sharedCost>
19264         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19265         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19266         <exampleNumber>801234567</exampleNumber>
19267       </sharedCost>
19268       <voip>
19269         <nationalNumberPattern>39\d{7}</nationalNumberPattern>
19270         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19271         <exampleNumber>391234567</exampleNumber>
19272       </voip>
19273       <emergency>
19274         <nationalNumberPattern>
19275           112|
19276           99[789]
19277         </nationalNumberPattern>
19278         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19279         <exampleNumber>112</exampleNumber>
19280       </emergency>
19281     </territory>
19282
19283     <!-- Saint Pierre and Miquelon (Collectivité territoriale de la République française) -->
19284     <!-- http://www.itu.int/oth/T02020000B2/en -->
19285     <territory id="PM" countryCode="508" internationalPrefix="00"
19286                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19287       <availableFormats>
19288         <numberFormat pattern="([45]\d)(\d{2})(\d{2})">
19289           <format>$1 $2 $3</format>
19290         </numberFormat>
19291       </availableFormats>
19292       <generalDesc>
19293         <nationalNumberPattern>[45]\d{5}</nationalNumberPattern>
19294         <possibleNumberPattern>\d{6}</possibleNumberPattern>
19295       </generalDesc>
19296       <fixedLine>
19297         <nationalNumberPattern>41\d{4} </nationalNumberPattern>
19298         <exampleNumber>411234</exampleNumber>
19299       </fixedLine>
19300       <mobile>
19301         <nationalNumberPattern>55\d{4} </nationalNumberPattern>
19302         <exampleNumber>551234</exampleNumber>
19303       </mobile>
19304       <emergency>
19305         <nationalNumberPattern>1[578]</nationalNumberPattern>
19306         <possibleNumberPattern>\d{2}</possibleNumberPattern>
19307         <exampleNumber>17</exampleNumber>
19308       </emergency>
19309     </territory>
19310
19311     <!-- Pitcairn Island -->
19312     <!-- id="PN" -->
19313     <!-- This island is not supported since evidence seems to be that the 50 inhabitants use
19314          satellite phones. -->
19315
19316     <!-- Puerto Rico -->
19317     <!-- http://www.itu.int/oth/T02020000AA/en -->
19318     <territory id="PR" countryCode="1" leadingDigits="787|939" nationalPrefix="1"
19319                internationalPrefix="011">
19320       <generalDesc>
19321         <!-- NANPA country - uses US formatting rules -->
19322         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
19323         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
19324       </generalDesc>
19325       <fixedLine>
19326         <nationalNumberPattern>
19327           (?:
19328             787|
19329             939
19330           )[2-9]\d{6}
19331         </nationalNumberPattern>
19332         <exampleNumber>7872345678</exampleNumber>
19333       </fixedLine>
19334       <mobile>
19335         <nationalNumberPattern>
19336           (?:
19337             787|
19338             939
19339           )[2-9]\d{6}
19340         </nationalNumberPattern>
19341         <exampleNumber>7872345678</exampleNumber>
19342       </mobile>
19343       <tollFree>
19344         <nationalNumberPattern>
19345           8(?:
19346             00|
19347             55|
19348             66|
19349             77|
19350             88
19351           )[2-9]\d{6}
19352         </nationalNumberPattern>
19353         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19354         <exampleNumber>8002345678</exampleNumber>
19355       </tollFree>
19356       <premiumRate>
19357         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
19358         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19359         <exampleNumber>9002345678</exampleNumber>
19360       </premiumRate>
19361       <personalNumber>
19362         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
19363         <nationalNumberPattern>
19364           5(?:
19365             00|
19366             33|
19367             44
19368           )[2-9]\d{6}
19369         </nationalNumberPattern>
19370         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19371         <exampleNumber>5002345678</exampleNumber>
19372       </personalNumber>
19373       <emergency>
19374         <!-- http://www.frommers.com/destinations/puertorico/0094020157.html
19375              http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
19376         <nationalNumberPattern>911</nationalNumberPattern>
19377         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19378         <exampleNumber>911</exampleNumber>
19379       </emergency>
19380     </territory>
19381
19382     <!-- Palestinian Authority -->
19383     <!-- http://en.wikipedia.org/wiki/%2B970 -->
19384     <!-- http://www.wtng.info/wtng-970-ps.html -->
19385     <!-- http://www.paltel.ps -->
19386     <!-- Palestinian phone numbers can be reached through the Israeli country code (972) in addition
19387          to the Palestinian country code (970) and so Palestinian landlines and mobile lines are a
19388          subset of the Israeli formats. -->
19389     <territory id="PS" countryCode="970" internationalPrefix="00"
19390                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19391       <availableFormats>
19392         <numberFormat pattern="([2489])(2\d{2})(\d{4})">
19393           <leadingDigits>[2489]</leadingDigits>
19394           <format>$1 $2 $3</format>
19395         </numberFormat>
19396         <numberFormat pattern="(5[69]\d)(\d{3})(\d{3})">
19397           <leadingDigits>5</leadingDigits>
19398           <format>$1 $2 $3</format>
19399         </numberFormat>
19400         <numberFormat nationalPrefixFormattingRule="$FG"
19401           pattern="(1[78]00)(\d{3})(\d{3})">
19402           <leadingDigits>1[78]</leadingDigits>
19403           <format>$1 $2 $3</format>
19404         </numberFormat>
19405         <!-- 4 and 5 digit premium numbers will be formatted as one block by default. -->
19406       </availableFormats>
19407       <generalDesc>
19408         <nationalNumberPattern>
19409           [24589]\d{7,8}|
19410           1(?:
19411             [78]\d{8}|
19412             [49]\d{2,3}
19413           )
19414         </nationalNumberPattern>
19415         <possibleNumberPattern>\d{4,10}</possibleNumberPattern>
19416       </generalDesc>
19417       <fixedLine>
19418         <nationalNumberPattern>
19419           (?:
19420             22[234789]|
19421             42[45]|
19422             82[01458]|
19423             92[369]
19424           )\d{5}
19425         </nationalNumberPattern>
19426         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19427         <exampleNumber>22234567</exampleNumber>
19428       </fixedLine>
19429       <mobile>
19430         <nationalNumberPattern>5[69]\d{7}</nationalNumberPattern>
19431         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19432         <exampleNumber>599123456</exampleNumber>
19433       </mobile>
19434       <tollFree>
19435         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
19436         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19437         <exampleNumber>1800123456</exampleNumber>
19438       </tollFree>
19439       <premiumRate>
19440         <!-- According to Paltel, premium numbers are 14xx and 19xxx -->
19441         <nationalNumberPattern>
19442           1(?:
19443             4|
19444             9\d
19445            )\d{2}
19446         </nationalNumberPattern>
19447         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
19448         <exampleNumber>19123</exampleNumber>
19449       </premiumRate>
19450       <sharedCost>
19451         <nationalNumberPattern>1700\d{6}</nationalNumberPattern>
19452         <possibleNumberPattern>\d{10}</possibleNumberPattern>
19453         <exampleNumber>1700123456</exampleNumber>
19454       </sharedCost>
19455     </territory>
19456
19457     <!-- Portugal -->
19458     <!-- http://www.anacom.pt/render.jsp?categoryId=279098 -->
19459     <territory id="PT" countryCode="351" internationalPrefix="00">
19460       <availableFormats>
19461         <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only
19462              two digits in the first group; however, this doesn't seem to be majority usage based on
19463              searches online. -->
19464         <numberFormat pattern="(2\d)(\d{3})(\d{4})">
19465           <leadingDigits>2[12]</leadingDigits>
19466           <format>$1 $2 $3</format>
19467         </numberFormat>
19468         <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})">
19469           <leadingDigits>
19470             2[3-9]|
19471             [346-9]
19472           </leadingDigits>
19473           <format>$1 $2 $3</format>
19474         </numberFormat>
19475       </availableFormats>
19476       <generalDesc>
19477         <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern>
19478         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19479       </generalDesc>
19480       <fixedLine>
19481         <nationalNumberPattern>
19482           2(?:
19483             [12]\d|
19484             [35][1-689]|
19485             4[1-59]|
19486             6[1-35689]|
19487             7[1-9]|
19488             8[1-69]|
19489             9[1256]
19490           )\d{6}
19491         </nationalNumberPattern>
19492         <exampleNumber>212345678</exampleNumber>
19493       </fixedLine>
19494       <mobile>
19495         <nationalNumberPattern>
19496           9(?:
19497             [136]\d{2}|
19498             2[0-79]\d|
19499             480
19500           )\d{5}
19501         </nationalNumberPattern>
19502         <exampleNumber>912345678</exampleNumber>
19503       </mobile>
19504       <tollFree>
19505         <nationalNumberPattern>80[02]\d{6}</nationalNumberPattern>
19506         <exampleNumber>800123456</exampleNumber>
19507       </tollFree>
19508       <premiumRate>
19509         <!-- Fixed maximum cost numbers: 761=0.60€, 761=1€, 762=2€. -->
19510         <nationalNumberPattern>
19511           76(?:
19512             0[1-57]|
19513             1[2-47]|
19514             2[237]
19515           )\d{5}
19516         </nationalNumberPattern>
19517         <exampleNumber>760123456</exampleNumber>
19518       </premiumRate>
19519       <sharedCost>
19520         <!-- 808 are priced as local calls, 809 are national calls. -->
19521         <nationalNumberPattern>
19522           80(?:
19523             8\d|
19524             9[1579]
19525           )\d{5}
19526         </nationalNumberPattern>
19527         <exampleNumber>808123456</exampleNumber>
19528       </sharedCost>
19529       <personalNumber>
19530         <nationalNumberPattern>884[128]\d{5}</nationalNumberPattern>
19531         <exampleNumber>884123456</exampleNumber>
19532       </personalNumber>
19533       <voip>
19534         <nationalNumberPattern>30\d{7}</nationalNumberPattern>
19535         <exampleNumber>301234567</exampleNumber>
19536       </voip>
19537       <uan>
19538         <nationalNumberPattern>
19539           70(?:
19540             7\d|
19541             8[17]
19542           )\d{5}
19543         </nationalNumberPattern>
19544         <exampleNumber>707123456</exampleNumber>
19545       </uan>
19546       <emergency>
19547         <nationalNumberPattern>112</nationalNumberPattern>
19548         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19549         <exampleNumber>112</exampleNumber>
19550       </emergency>
19551     </territory>
19552
19553     <!-- Palau -->
19554     <!-- http://www.itu.int/oth/T02020000A2/en -->
19555     <territory id="PW" countryCode="680" internationalPrefix="01[12]">
19556       <availableFormats>
19557         <numberFormat pattern="(\d{3})(\d{4})">
19558           <format>$1 $2</format>
19559         </numberFormat>
19560       </availableFormats>
19561       <generalDesc>
19562         <nationalNumberPattern>[2-8]\d{6}</nationalNumberPattern>
19563         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19564       </generalDesc>
19565       <fixedLine>
19566         <nationalNumberPattern>
19567           2552255|
19568           (?:
19569             277|
19570             345|
19571             488|
19572             5(?:
19573               35|
19574               44|
19575               87
19576             )|
19577             6(?:
19578               22|
19579               54|
19580               79
19581             )|
19582             7(?:
19583               33|
19584               47
19585             )|
19586             8(?:
19587               24|
19588               55|
19589               76
19590             )
19591           )\d{4}
19592         </nationalNumberPattern>
19593         <exampleNumber>2771234</exampleNumber>
19594       </fixedLine>
19595       <mobile>
19596         <nationalNumberPattern>
19597           (?:
19598             6[234689]0|
19599             77[45789]
19600           )\d{4}
19601         </nationalNumberPattern>
19602         <exampleNumber>6201234</exampleNumber>
19603       </mobile>
19604       <emergency>
19605         <nationalNumberPattern>911</nationalNumberPattern>
19606         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19607         <exampleNumber>911</exampleNumber>
19608       </emergency>
19609     </territory>
19610
19611     <!-- Paraguay -->
19612     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Paraguay -->
19613     <!-- http://www.itu.int/oth/T02020000A5/en -->
19614     <!-- http://www.copaco.com.py/portal/index.php/component/content/article/8-empresa/74-codigos-de-area.html -->
19615     <territory id="PY" countryCode="595" internationalPrefix="00" nationalPrefix="0">
19616       <availableFormats>
19617         <!-- CONATEL plan. -->
19618         <numberFormat pattern="(\d{2})(\d{5,7})" nationalPrefixFormattingRule="($FG)">
19619           <leadingDigits>
19620             (?:
19621               [26]1|
19622               3[289]|
19623               4[124678]|
19624               7[123]|
19625               8[1236]
19626             )
19627           </leadingDigits>
19628           <format>$1 $2</format>
19629         </numberFormat>
19630         <numberFormat pattern="(\d{3})(\d{3,6})" nationalPrefixFormattingRule="$NP$FG">
19631           <leadingDigits>[2-9]0</leadingDigits>
19632           <format>$1 $2</format>
19633         </numberFormat>
19634         <numberFormat pattern="(\d{3})(\d{6})" nationalPrefixFormattingRule="$NP$FG">
19635           <leadingDigits>9[1-9]</leadingDigits>
19636           <format>$1 $2</format>
19637         </numberFormat>
19638         <!-- Format seen in examples found online. -->
19639         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
19640           <leadingDigits>8700</leadingDigits>
19641           <format>$1 $2 $3</format>
19642         </numberFormat>
19643         <!-- "Fall-back" rule for the rest of the fixed-line numbers that have 3-digit area codes.
19644              -->
19645         <numberFormat pattern="(\d{3})(\d{4,6})" nationalPrefixFormattingRule="($FG)">
19646           <leadingDigits>[2-8][1-9]</leadingDigits>
19647           <format>$1 $2</format>
19648         </numberFormat>
19649       </availableFormats>
19650       <generalDesc>
19651         <nationalNumberPattern>
19652           5[0-5]\d{4,7}|
19653           [2-46-9]\d{5,8}
19654         </nationalNumberPattern>
19655         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
19656       </generalDesc>
19657       <fixedLine>
19658         <nationalNumberPattern>
19659           (?:
19660             [26]1|
19661             3[289]|
19662             4[124678]|
19663             7[123]|
19664             8[1236]
19665           )\d{5,7}|
19666           (?:
19667             2(?:
19668               2[4568]|
19669               7[15]|
19670               9[1-5]
19671             )|
19672             3(?:
19673               18|
19674               3[167]|
19675               4[2357]|
19676               51
19677             )|
19678             4(?:
19679               18|
19680               2[45]|
19681               3[12]|
19682               5[13]|
19683               64|
19684               71|
19685               9[1-47]
19686             )|
19687             5(?:
19688               [1-4]\d|
19689               5[0234]
19690             )|
19691             6(?:
19692               3[1-3]|
19693               44|
19694               7[1-4678]
19695             )|
19696             7(?:
19697               17|
19698               4[0-4]|
19699               6[1-578]|
19700               75|
19701               8[0-8]
19702             )|
19703             858
19704           )\d{5,6}
19705         </nationalNumberPattern>
19706         <exampleNumber>212345678</exampleNumber>
19707       </fixedLine>
19708       <mobile>
19709         <!-- 962 was added for Tigo. -->
19710         <nationalNumberPattern>
19711           9(?:
19712             6[12]|
19713             [78][1-6]|
19714             9[1-5]
19715           )\d{6}
19716         </nationalNumberPattern>
19717         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19718         <exampleNumber>961456789</exampleNumber>
19719       </mobile>
19720       <voip>
19721         <nationalNumberPattern>8700[0-4]\d{4}</nationalNumberPattern>
19722         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19723         <exampleNumber>870012345</exampleNumber>
19724       </voip>
19725       <uan>
19726         <nationalNumberPattern>[2-9]0\d{4,7}</nationalNumberPattern>
19727         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19728         <exampleNumber>201234567</exampleNumber>
19729       </uan>
19730       <emergency>
19731         <nationalNumberPattern>
19732           128|
19733           911
19734         </nationalNumberPattern>
19735         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19736         <exampleNumber>911</exampleNumber>
19737       </emergency>
19738     </territory>
19739
19740     <!-- Qatar -->
19741     <!-- http://www.itu.int/oth/T02020000AB/en -->
19742     <!-- http://wtng.info/wtng-qq.html -->
19743     <territory id="QA" countryCode="974" internationalPrefix="00">
19744       <availableFormats>
19745         <numberFormat pattern="([28]\d{2})(\d{4})">
19746           <leadingDigits>[28]</leadingDigits>
19747           <format>$1 $2</format>
19748         </numberFormat>
19749         <numberFormat pattern="([3-7]\d{3})(\d{4})">
19750           <leadingDigits>[3-7]</leadingDigits>
19751           <format>$1 $2</format>
19752         </numberFormat>
19753       </availableFormats>
19754       <generalDesc>
19755         <nationalNumberPattern>[2-8]\d{6,7}</nationalNumberPattern>
19756         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
19757       </generalDesc>
19758       <fixedLine>
19759         <!-- The prefix 40 has now been allocated, based on numbers seen online. -->
19760         <nationalNumberPattern>4[04]\d{6}</nationalNumberPattern>
19761         <exampleNumber>44123456</exampleNumber>
19762       </fixedLine>
19763       <mobile>
19764         <nationalNumberPattern>[3567]\d{7}</nationalNumberPattern>
19765         <exampleNumber>33123456</exampleNumber>
19766       </mobile>
19767       <pager>
19768         <nationalNumberPattern>
19769           2(?:
19770             [12]\d|
19771             61
19772           )\d{4}
19773         </nationalNumberPattern>
19774         <possibleNumberPattern>\d{7}</possibleNumberPattern>
19775         <exampleNumber>2123456</exampleNumber>
19776       </pager>
19777       <tollFree>
19778         <nationalNumberPattern>800\d{4}</nationalNumberPattern>
19779         <exampleNumber>8001234</exampleNumber>
19780       </tollFree>
19781       <!-- No premiumRate information can be found. -->
19782       <emergency>
19783         <nationalNumberPattern>999</nationalNumberPattern>
19784         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19785         <exampleNumber>999</exampleNumber>
19786       </emergency>
19787     </territory>
19788
19789     <!-- Réunion (French Departments and Territories in the Indian Ocean) -->
19790     <!-- Note this shares the same country code as La Mayotte and the formatting patterns here are
19791          used by both of them. -->
19792     <!-- http://www.itu.int/oth/T020200004B/en -->
19793     <territory id="RE" countryCode="262" internationalPrefix="00"
19794                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19795                leadingDigits="262|6[49]|8" mainCountryForCode="true" >
19796       <availableFormats>
19797         <numberFormat pattern="([268]\d{2})(\d{2})(\d{2})(\d{2})">
19798           <format>$1 $2 $3 $4</format>
19799         </numberFormat>
19800       </availableFormats>
19801       <generalDesc>
19802         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
19803         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19804       </generalDesc>
19805       <fixedLine>
19806         <!-- 0876 numbers are mentioned in the plan, but none in use can be found. -->
19807         <nationalNumberPattern>262\d{6}</nationalNumberPattern>
19808         <exampleNumber>262161234</exampleNumber>
19809       </fixedLine>
19810       <mobile>
19811         <nationalNumberPattern>
19812           6(?:
19813             9[23]|
19814             47
19815           )\d{6}
19816         </nationalNumberPattern>
19817         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19818         <exampleNumber>692123456</exampleNumber>
19819       </mobile>
19820       <!-- 08* Numbers in Réunion are the same as those valid in France. -->
19821       <tollFree>
19822         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
19823         <exampleNumber>801234567</exampleNumber>
19824       </tollFree>
19825       <premiumRate>
19826         <nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
19827         <exampleNumber>891123456</exampleNumber>
19828       </premiumRate>
19829       <sharedCost>
19830         <nationalNumberPattern>
19831           8(?:
19832             1[019]|
19833             2[0156]|
19834             84|
19835             90
19836           )\d{6}
19837         </nationalNumberPattern>
19838         <exampleNumber>810123456</exampleNumber>
19839       </sharedCost>
19840       <!-- http://www.reunion.fr/en/navigation-principale/getting-there/practical-information.html -->
19841       <emergency>
19842         <nationalNumberPattern>
19843           1(?:
19844             12|
19845             [578]
19846           )
19847         </nationalNumberPattern>
19848         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
19849         <exampleNumber>15</exampleNumber>
19850       </emergency>
19851     </territory>
19852
19853     <!-- Romania -->
19854     <!-- http://www.itu.int/oth/T02020000AC/en -->
19855     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Romania -->
19856     <!-- Extension prefix found online, confirmed by a Romanian. -->
19857     <territory id="RO" countryCode="40" internationalPrefix="00"
19858                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
19859                preferredExtnPrefix=" int ">
19860       <availableFormats>
19861         <numberFormat pattern="([237]\d)(\d{3})(\d{4})">
19862           <leadingDigits>[23]1</leadingDigits>
19863           <format>$1 $2 $3</format>
19864         </numberFormat>
19865         <numberFormat pattern="(21)(\d{4})">
19866           <leadingDigits>21</leadingDigits>
19867           <format>$1 $2</format>
19868         </numberFormat>
19869         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
19870           <!-- We format mobile numbers like this, even though ITU and wikipedia hint at
19871                \d{2}\d{3}\d{4} grouping, since the yellow pages (http://en.paginiaurii.ro/) and the
19872                majority of numbers found online follow this convention. -->
19873           <leadingDigits>
19874             [23][3-7]|
19875             [7-9]
19876           </leadingDigits>
19877           <format>$1 $2 $3</format>
19878         </numberFormat>
19879         <numberFormat pattern="(2\d{2})(\d{3})">
19880           <leadingDigits>2[3-6]</leadingDigits>
19881           <format>$1 $2</format>
19882         </numberFormat>
19883       </availableFormats>
19884       <generalDesc>
19885         <nationalNumberPattern>
19886           2\d{5,8}|
19887           [37-9]\d{8}
19888         </nationalNumberPattern>
19889         <!-- Although the ITU plan says the number plan is open, this was changed in 2008 according
19890              to wikipedia and people must dial the full number. However, there are still short
19891              numbers that total 6 digits long, so the possible number pattern should take these into
19892              account. -->
19893         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
19894       </generalDesc>
19895       <fixedLine>
19896         <!-- We exclude three-digit short numbers for Bucharest (219\d{2}) and four-digit short
19897              numbers outside Bucharest (2[36]\d9\d{3}) even though ITU suggests these exist. We do
19898              this based on numbers found online and the wikipedia article which indicate that these
19899              are four digits long in Bucharest only, and three digits elsewhere. -->
19900         <nationalNumberPattern>
19901           2(?:
19902             1(?:
19903               \d{7}|
19904               9\d{3}
19905             )|
19906             [3-6](?:
19907               \d{7}|
19908               \d9\d{2}
19909             )
19910           )|
19911           3[13-6]\d{7}
19912           </nationalNumberPattern>
19913         <exampleNumber>211234567</exampleNumber>
19914       </fixedLine>
19915       <mobile>
19916         <!-- http://www.enigma-system.net/business/customized-phone-number.html confirms that the
19917              numbers are restricted to those starting with 07000. Mobile prefix 0799 added based on
19918              open-source report and confirmation by existence of such numbers online. -->
19919         <nationalNumberPattern>
19920           7(?:
19921             000|
19922             [1-8]\d{2}|
19923             99\d
19924           )\d{5}
19925         </nationalNumberPattern>
19926         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19927         <exampleNumber>712345678</exampleNumber>
19928       </mobile>
19929       <tollFree>
19930         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
19931         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19932         <exampleNumber>800123456</exampleNumber>
19933       </tollFree>
19934       <premiumRate>
19935         <nationalNumberPattern>90[036]\d{6}</nationalNumberPattern>
19936         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19937         <exampleNumber>900123456</exampleNumber>
19938       </premiumRate>
19939       <sharedCost>
19940         <nationalNumberPattern>801\d{6}</nationalNumberPattern>
19941         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19942         <exampleNumber>801123456</exampleNumber>
19943       </sharedCost>
19944       <personalNumber>
19945         <nationalNumberPattern>802\d{6}</nationalNumberPattern>
19946         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19947         <exampleNumber>802123456</exampleNumber>
19948       </personalNumber>
19949       <uan>
19950         <!-- http://www.ancom.org.ro/pnn_1300 refers to numbers beginning with 37, 38 or 39 as
19951              location-independent national numbers. Only numbers beginning with 37 have been seen so
19952              these are the only ones supported for now. -->
19953         <nationalNumberPattern>37\d{7}</nationalNumberPattern>
19954         <possibleNumberPattern>\d{9}</possibleNumberPattern>
19955         <exampleNumber>372123456</exampleNumber>
19956       </uan>
19957       <emergency>
19958         <nationalNumberPattern>112</nationalNumberPattern>
19959         <possibleNumberPattern>\d{3}</possibleNumberPattern>
19960         <exampleNumber>112</exampleNumber>
19961       </emergency>
19962     </territory>
19963
19964     <!-- Serbia -->
19965     <!-- http://www.itu.int/oth/T02020000B9/en -->
19966     <!-- http://registar.ratel.rs/en/reg202 -->
19967     <territory id="RS" countryCode="381" internationalPrefix="00"
19968                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
19969       <availableFormats>
19970         <numberFormat pattern="([23]\d{2})(\d{4,9})">
19971           <leadingDigits>
19972             (?:
19973               2[389]|
19974               39
19975             )0
19976           </leadingDigits>
19977           <format>$1 $2</format>
19978         </numberFormat>
19979         <numberFormat pattern="([1-3]\d)(\d{5,10})">
19980           <leadingDigits>
19981             1|
19982             2(?:
19983               [0-24-7]|
19984               [389][1-9]
19985             )|
19986             3(?:
19987               [0-8]|
19988               9[1-9]
19989             )
19990           </leadingDigits>
19991           <format>$1 $2</format>
19992         </numberFormat>
19993         <numberFormat pattern="(6\d)(\d{6,8})">
19994           <leadingDigits>6</leadingDigits>
19995           <format>$1 $2</format>
19996         </numberFormat>
19997         <numberFormat pattern="([89]\d{2})(\d{3,9})">
19998           <leadingDigits>[89]</leadingDigits>
19999           <format>$1 $2</format>
20000         </numberFormat>
20001         <numberFormat pattern="(7[26])(\d{4,9})">
20002           <leadingDigits>7[26]</leadingDigits>
20003           <format>$1 $2</format>
20004         </numberFormat>
20005         <numberFormat pattern="(7[08]\d)(\d{4,9})">
20006           <leadingDigits>7[08]</leadingDigits>
20007           <format>$1 $2</format>
20008         </numberFormat>
20009       </availableFormats>
20010       <generalDesc>
20011         <!-- The complicated pattern here is to distinguish between Pristina (area code 38, followed
20012              by 2-9) and the country calling code (381). -->
20013         <nationalNumberPattern>
20014           [126-9]\d{4,11}|
20015           3(?:
20016             [0-79]\d{3,10}|
20017             8[2-9]\d{2,9}
20018           )
20019         </nationalNumberPattern>
20020         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
20021       </generalDesc>
20022       <fixedLine>
20023         <!-- Most subscriber numbers may not start with 0 or 1. Exceptionally, the prefix 11 1[5-7]
20024              has been issused, so we allow 11 1X here. -->
20025         <nationalNumberPattern>
20026           (?:
20027             1(?:
20028               [02-9][2-9]|
20029               1[1-9]
20030             )\d|
20031             2(?:
20032               [0-24-7][2-9]\d|
20033               [389](?:
20034                 0[2-9]|
20035                 [2-9]\d
20036               )
20037             )|
20038             3(?:
20039               [0-8][2-9]\d|
20040               9(?:
20041                 [2-9]\d|
20042                 0[2-9]
20043               )
20044             )
20045           )\d{3,8}
20046         </nationalNumberPattern>
20047         <possibleNumberPattern>\d{5,12}</possibleNumberPattern>
20048         <exampleNumber>10234567</exampleNumber>
20049       </fixedLine>
20050       <mobile>
20051         <nationalNumberPattern>
20052           6(?:
20053             [0-689]|
20054             7\d
20055           )\d{6,7}
20056         </nationalNumberPattern>
20057         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
20058         <exampleNumber>601234567</exampleNumber>
20059       </mobile>
20060       <tollFree>
20061         <nationalNumberPattern>800\d{3,9}</nationalNumberPattern>
20062         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
20063         <exampleNumber>80012345</exampleNumber>
20064       </tollFree>
20065       <premiumRate>
20066         <nationalNumberPattern>
20067           (?:
20068             90[0169]|
20069             78\d
20070           )\d{3,7}
20071         </nationalNumberPattern>
20072         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
20073         <exampleNumber>90012345</exampleNumber>
20074       </premiumRate>
20075       <uan>
20076         <nationalNumberPattern>7[06]\d{4,10}</nationalNumberPattern>
20077         <possibleNumberPattern>\d{6,12}</possibleNumberPattern>
20078         <exampleNumber>700123456</exampleNumber>
20079       </uan>
20080       <emergency>
20081         <nationalNumberPattern>
20082           112|
20083           9[234]
20084         </nationalNumberPattern>
20085         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
20086         <exampleNumber>112</exampleNumber>
20087       </emergency>
20088     </territory>
20089
20090     <!-- Russian Federation -->
20091     <!-- http://www.itu.int/oth/T02020000AD/en -->
20092     <!-- http://en.wikipedia.org/wiki/%2B7 -->
20093     <territory id="RU" countryCode="7" mainCountryForCode="true" preferredInternationalPrefix="8~10"
20094                internationalPrefix="810" nationalPrefix="8"
20095                nationalPrefixFormattingRule="$NP ($FG)"
20096                nationalPrefixOptionalWhenFormatting="true" >
20097       <availableFormats>
20098         <!-- Formatting from wikipedia, confirmed on Goverment websites such as
20099              http://www.minjust.ru/ru/structure/contact/. Contains formatting instructions for
20100              Kazakhstan as well. -->
20101         <numberFormat pattern="(\d{3})(\d{2})(\d{2})" nationalPrefixFormattingRule="$FG">
20102           <!-- Local numbers only - these do not start with the national prefix. -->
20103           <leadingDigits>[1-79]</leadingDigits>
20104           <format>$1-$2-$3</format>
20105           <intlFormat>NA</intlFormat>
20106         </numberFormat>
20107         <numberFormat pattern="([3489]\d{2})(\d{3})(\d{2})(\d{2})">
20108           <leadingDigits>[34689]</leadingDigits>
20109           <format>$1 $2-$3-$4</format>
20110         </numberFormat>
20111         <numberFormat pattern="(7\d{2})(\d{3})(\d{4})">
20112           <leadingDigits>7</leadingDigits>
20113           <format>$1 $2 $3</format>
20114         </numberFormat>
20115       </availableFormats>
20116       <generalDesc>
20117         <nationalNumberPattern>[3489]\d{9}</nationalNumberPattern>
20118         <possibleNumberPattern>\d{10}</possibleNumberPattern>
20119       </generalDesc>
20120       <fixedLine>
20121         <!-- The Ivanovo area code 493 was omitted on the official document, but this is still used
20122              in the yellow pages, and on their own website and is listed on wikipedia. This applies
20123              also to 395 (Irkutsk). Also including the 840 prefix for Abkhazia. -->
20124         <nationalNumberPattern>
20125           (?:
20126             3(?:
20127               0[12]|
20128               4[1-35-79]|
20129               5[1-3]|
20130               8[1-58]|
20131               9[0145]
20132             )|
20133             4(?:
20134               01|
20135               1[1356]|
20136               2[13467]|
20137               7[1-5]|
20138               8[1-7]|
20139               9[1-689]
20140             )|
20141             8(?:
20142               1[1-8]|
20143               2[01]|
20144               3[13-6]|
20145               4[0-8]|
20146               5[15]|
20147               6[1-35-7]|
20148               7[1-37-9]
20149             )
20150           )\d{7}
20151         </nationalNumberPattern>
20152         <exampleNumber>3011234567</exampleNumber>
20153       </fixedLine>
20154       <mobile>
20155         <nationalNumberPattern>9\d{9}</nationalNumberPattern>
20156         <exampleNumber>9123456789</exampleNumber>
20157       </mobile>
20158       <tollFree>
20159         <!-- The metadata states that 804 numbers are UAN numbers, but
20160              teleum.ru/numbers/toll_free_804 states that they are now being offered as toll-free
20161              numbers. -->
20162         <nationalNumberPattern>80[04]\d{7}</nationalNumberPattern>
20163         <exampleNumber>8001234567</exampleNumber>
20164       </tollFree>
20165       <premiumRate>
20166         <!-- Covers tele-voting numbers as well. -->
20167         <nationalNumberPattern>80[39]\d{7}</nationalNumberPattern>
20168         <exampleNumber>8091234567</exampleNumber>
20169       </premiumRate>
20170       <emergency>
20171         <nationalNumberPattern>
20172           0[123]|
20173           112
20174         </nationalNumberPattern>
20175         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
20176         <exampleNumber>112</exampleNumber>
20177       </emergency>
20178     </territory>
20179
20180     <!-- Rwanda -->
20181     <!-- According to ITU, there is no national prefix. However, this is still used. As of June 3rd
20182          2011, this was confirmed by a Rwandan local. It is also shown in this format on pages such
20183          as www.tigo.co.rw "Choose Your Number" service. -->
20184     <!-- http://www.rura.gov.rw/docs/RWANDA_NATIONAL_NUMBERING_PLAN.pdf -->
20185     <!-- http://en.wikipedia.org/wiki/+250 -->
20186     <territory id="RW" countryCode="250" internationalPrefix="00"
20187                nationalPrefix="0" leadingZeroPossible="true">
20188       <availableFormats>
20189         <numberFormat nationalPrefixFormattingRule="$FG"
20190           pattern="(2\d{2})(\d{3})(\d{3})">
20191           <leadingDigits>2</leadingDigits>
20192           <format>$1 $2 $3</format>
20193         </numberFormat>
20194         <numberFormat pattern="([7-9]\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
20195           <leadingDigits>[7-9]</leadingDigits>
20196           <format>$1 $2 $3</format>
20197         </numberFormat>
20198         <numberFormat pattern="(0\d)(\d{2})(\d{2})(\d{2})">
20199           <leadingDigits>0</leadingDigits>
20200           <format>$1 $2 $3 $4</format>
20201         </numberFormat>
20202       </availableFormats>
20203       <generalDesc>
20204         <nationalNumberPattern>[027-9]\d{7,8}</nationalNumberPattern>
20205         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
20206       </generalDesc>
20207       <fixedLine>
20208         <!-- We support satellite numbers here, since they are in the plan, although no recent
20209              online examples can be found. We also support fixed-line ranges that have been reserved
20210              and paid for, even where no online numbers can be found. -->
20211         <nationalNumberPattern>
20212           2[258]\d{7}|
20213           06\d{6}
20214         </nationalNumberPattern>
20215         <exampleNumber>250123456</exampleNumber>
20216       </fixedLine>
20217       <mobile>
20218         <!-- Adding 73X for Airtel - this is on the wikipedia page, but not yet in the Rwanda
20219              telecommunications numbering plan. Removing 75 - that was Rwandatel but they had their
20220              license revoked. -->
20221         <nationalNumberPattern>7[238]\d{7}</nationalNumberPattern>
20222         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20223         <exampleNumber>720123456</exampleNumber>
20224       </mobile>
20225       <tollFree>
20226         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
20227         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20228         <exampleNumber>800123456</exampleNumber>
20229       </tollFree>
20230       <premiumRate>
20231         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
20232         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20233         <exampleNumber>900123456</exampleNumber>
20234       </premiumRate>
20235       <emergency>
20236         <nationalNumberPattern>112</nationalNumberPattern>
20237         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20238         <exampleNumber>112</exampleNumber>
20239       </emergency>
20240     </territory>
20241
20242     <!-- Saudi Arabia -->
20243     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Saudi_Arabia -->
20244     <!-- http://www.itu.int/oth/T02020000B7/en -->
20245     <territory id="SA" countryCode="966" internationalPrefix="00"
20246                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
20247       <availableFormats>
20248         <numberFormat pattern="([1-467])(\d{3})(\d{4})">
20249           <leadingDigits>[1-467]</leadingDigits>
20250           <format>$1 $2 $3</format>
20251         </numberFormat>
20252         <numberFormat pattern="(1\d)(\d{3})(\d{4})">
20253           <leadingDigits>1[1-467]</leadingDigits>
20254           <format>$1 $2 $3</format>
20255         </numberFormat>
20256         <numberFormat pattern="(5\d)(\d{3})(\d{4})">
20257           <leadingDigits>5</leadingDigits>
20258           <format>$1 $2 $3</format>
20259         </numberFormat>
20260         <!-- It seems that the trunk prefix is not used for these numbers, based on wikipedia and on
20261              the fact that no numbers of this form found online have a trunk prefix added. -->
20262         <numberFormat pattern="(92\d{2})(\d{5})" nationalPrefixFormattingRule="$FG">
20263           <leadingDigits>9</leadingDigits>
20264           <format>$1 $2</format>
20265         </numberFormat>
20266         <numberFormat pattern="(800)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
20267           <leadingDigits>80</leadingDigits>
20268           <format>$1 $2 $3</format>
20269         </numberFormat>
20270         <numberFormat pattern="(811)(\d{3})(\d{3,4})">
20271           <leadingDigits>81</leadingDigits>
20272           <format>$1 $2 $3</format>
20273         </numberFormat>
20274       </availableFormats>
20275       <generalDesc>
20276         <!-- The more detailed pattern here is to allow the country-code to be stripped off for
20277              fixed-line numbers. -->
20278         <nationalNumberPattern>
20279           1\d{7,8}|
20280           (?:
20281             [2-467]|
20282             92
20283           )\d{7}|
20284           5\d{8}|
20285           8\d{9}
20286         </nationalNumberPattern>
20287         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
20288       </generalDesc>
20289       <fixedLine>
20290         <!-- Saudi Arabia is in the process of adding a leading 1 to their fixed-line numbers. This
20291              is happening in May for area code 1 (parallel running ends July 13th, 2013) and then in
20292              August for the other fixed-line numbers. -->
20293         <nationalNumberPattern>
20294           (?:
20295             11?\d|
20296             2[24-8]|
20297             3[35-8]|
20298             4[3-68]|
20299             6[2-5]|
20300             7[235-7]
20301           )\d{6}
20302         </nationalNumberPattern>
20303         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
20304         <exampleNumber>112345678</exampleNumber>
20305       </fixedLine>
20306       <mobile>
20307         <!-- Including "Nomadic" numbers from the Telecom Company "Go". The ITU document now says
20308              they are 11 digits long; however all online numbers are 10, and it used to say 10, so
20309              until we find evidence that this is an error, leaving them at 10 for now. -->
20310         <nationalNumberPattern>
20311           (?:
20312             5[013-689]|
20313             811
20314           )\d{7}
20315         </nationalNumberPattern>
20316         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
20317         <exampleNumber>512345678</exampleNumber>
20318       </mobile>
20319       <tollFree>
20320         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
20321         <possibleNumberPattern>\d{10}</possibleNumberPattern>
20322         <exampleNumber>8001234567</exampleNumber>
20323       </tollFree>
20324       <sharedCost>
20325         <!-- Including shared revenue with shared cost here. -->
20326         <nationalNumberPattern>92[05]\d{6}</nationalNumberPattern>
20327         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20328         <exampleNumber>920012345</exampleNumber>
20329       </sharedCost>
20330       <emergency>
20331         <nationalNumberPattern>
20332           112|
20333           9(?:
20334             11|
20335             9[7-9]
20336           )
20337         </nationalNumberPattern>
20338         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20339         <exampleNumber>999</exampleNumber>
20340       </emergency>
20341     </territory>
20342
20343     <!-- Solomon Islands -->
20344     <!-- http://www.itu.int/oth/T02020000BF/en -->
20345     <territory id="SB" countryCode="677" internationalPrefix="0[01]">
20346       <!-- A single group is used to format 5-digit numbers. -->
20347       <availableFormats>
20348         <numberFormat pattern="(\d{3})(\d{4})">
20349           <leadingDigits>[7-9]</leadingDigits>
20350           <format>$1 $2</format>
20351         </numberFormat>
20352       </availableFormats>
20353       <generalDesc>
20354         <nationalNumberPattern>[1-9]\d{4,6}</nationalNumberPattern>
20355         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
20356       </generalDesc>
20357       <fixedLine>
20358         <!-- Although not mentioned in the 2011 update, it seems likely that the range 67300-67699
20359              is still used for Sasamunga, Shortland, Poitete and Ringgi as per the 2010 plan. -->
20360         <nationalNumberPattern>
20361           (?:
20362             1[4-79]|
20363             [23]\d|
20364             4[01]|
20365             5[03]|
20366             6[0-37]
20367           )\d{3}
20368         </nationalNumberPattern>
20369         <possibleNumberPattern>\d{5}</possibleNumberPattern>
20370         <exampleNumber>40123</exampleNumber>
20371       </fixedLine>
20372       <mobile>
20373         <nationalNumberPattern>
20374           48\d{3}|
20375           7(?:
20376             [46-8]\d|
20377             5[025-9]|
20378             90
20379           )\d{4}|
20380           8[4-8]\d{5}|
20381           9(?:
20382             [46]\d|
20383             5[0-46-9]|
20384             7[0-689]|
20385             8[0-79]|
20386             9[0-8]
20387           )\d{4}
20388         </nationalNumberPattern>
20389         <exampleNumber>7421234</exampleNumber>
20390       </mobile>
20391       <tollFree>
20392         <nationalNumberPattern>1[38]\d{3}</nationalNumberPattern>
20393         <possibleNumberPattern>\d{5}</possibleNumberPattern>
20394         <exampleNumber>18123</exampleNumber>
20395       </tollFree>
20396       <voip>
20397         <nationalNumberPattern>5[12]\d{3}</nationalNumberPattern>
20398         <possibleNumberPattern>\d{5}</possibleNumberPattern>
20399         <exampleNumber>51123</exampleNumber>
20400       </voip>
20401       <emergency>
20402         <nationalNumberPattern>999</nationalNumberPattern>
20403         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20404         <exampleNumber>999</exampleNumber>
20405       </emergency>
20406     </territory>
20407
20408     <!-- Seychelles -->
20409     <!-- http://www.itu.int/oth/T02020000BA/en -->
20410     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Seychelles -->
20411     <territory id="SC" countryCode="248" internationalPrefix="0[0-2]"
20412                preferredInternationalPrefix="00">
20413       <availableFormats>
20414         <numberFormat pattern="(\d{3})(\d{3})">
20415           <leadingDigits>[89]</leadingDigits>
20416           <format>$1 $2</format>
20417         </numberFormat>
20418         <numberFormat pattern="(\d)(\d{3})(\d{3})">
20419           <leadingDigits>[246]</leadingDigits>
20420           <format>$1 $2 $3</format>
20421         </numberFormat>
20422       </availableFormats>
20423       <generalDesc>
20424         <nationalNumberPattern>[24689]\d{5,6}</nationalNumberPattern>
20425         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
20426       </generalDesc>
20427       <fixedLine>
20428         <!-- We are putting Fixed Services numbers here for now, as we cannot find any evidence that
20429              they are more expensive to call than other Fixed Line services. ISDN and DID services
20430              are here too, since they seem to be also fixed-line phone numbers. -->
20431         <nationalNumberPattern>4[2-46]\d{5}</nationalNumberPattern>
20432         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20433         <exampleNumber>4217123</exampleNumber>
20434       </fixedLine>
20435       <mobile>
20436         <!-- Includes Fixed Cellular. -->
20437         <nationalNumberPattern>2[5-8]\d{5}</nationalNumberPattern>
20438         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20439         <exampleNumber>2510123</exampleNumber>
20440       </mobile>
20441       <tollFree>
20442         <nationalNumberPattern>8000\d{2}</nationalNumberPattern>
20443         <possibleNumberPattern>\d{6}</possibleNumberPattern>
20444         <exampleNumber>800000</exampleNumber>
20445       </tollFree>
20446       <premiumRate>
20447         <!-- Using this to represent Value Added Service in the plan. -->
20448         <nationalNumberPattern>98\d{4}</nationalNumberPattern>
20449         <possibleNumberPattern>\d{6}</possibleNumberPattern>
20450         <exampleNumber>981234</exampleNumber>
20451       </premiumRate>
20452       <voip>
20453         <nationalNumberPattern>64\d{5}</nationalNumberPattern>
20454         <possibleNumberPattern>\d{7}</possibleNumberPattern>
20455         <exampleNumber>6412345</exampleNumber>
20456       </voip>
20457       <emergency>
20458         <nationalNumberPattern>999</nationalNumberPattern>
20459         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20460         <exampleNumber>999</exampleNumber>
20461       </emergency>
20462     </territory>
20463
20464     <!-- Sudan -->
20465     <!-- http://www.itu.int/oth/T02020000C4/en -->
20466     <territory id="SD" countryCode="249" internationalPrefix="00"
20467                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
20468       <availableFormats>
20469         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
20470           <format>$1 $2 $3</format>
20471         </numberFormat>
20472       </availableFormats>
20473       <generalDesc>
20474         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
20475         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20476       </generalDesc>
20477       <fixedLine>
20478         <!-- Retaining previous prefix as 18 since it seems still to be used. Adding 11 from numbers
20479              found online. -->
20480         <nationalNumberPattern>
20481           1(?:
20482             [125]\d|
20483             8[3567]
20484           )\d{6}
20485         </nationalNumberPattern>
20486         <exampleNumber>121231234</exampleNumber>
20487       </fixedLine>
20488       <mobile>
20489         <!-- Adding 90X as online numbers have been found with this prefix. -->
20490         <nationalNumberPattern>9[012569]\d{7}</nationalNumberPattern>
20491         <exampleNumber>911231234</exampleNumber>
20492       </mobile>
20493       <emergency>
20494         <nationalNumberPattern>999</nationalNumberPattern>
20495         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20496         <exampleNumber>999</exampleNumber>
20497       </emergency>
20498     </territory>
20499
20500     <!-- Sweden -->
20501     <!-- http://www.pts.se/upload/Ovrigt/Tele/Nummerfragor/Sv_nrplan_telefoni_enl_TU-T_rek_E.164.pdf -->
20502     <territory id="SE" countryCode="46" internationalPrefix="00"
20503                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
20504       <availableFormats>
20505       <!-- Formatting patterns are from the numbering plan and from the Swedish yellow pages
20506            http://gulasidorna.eniro.se -->
20507         <numberFormat pattern="(8)(\d{2,3})(\d{2,3})(\d{2})">
20508           <leadingDigits>8</leadingDigits>
20509           <format>$1-$2 $3 $4</format>
20510           <intlFormat>$1 $2 $3 $4</intlFormat>
20511         </numberFormat>
20512         <numberFormat pattern="([1-69]\d)(\d{2,3})(\d{2})(\d{2})">
20513           <leadingDigits>
20514             1[013689]|
20515             2[0136]|
20516             3[1356]|
20517             4[0246]|
20518             54|
20519             6[03]|
20520             90
20521           </leadingDigits>
20522           <format>$1-$2 $3 $4</format>
20523           <intlFormat>$1 $2 $3 $4</intlFormat>
20524         </numberFormat>
20525         <numberFormat pattern="([1-69]\d)(\d{3})(\d{2})">
20526           <leadingDigits>
20527             1[13689]|
20528             2[136]|
20529             3[1356]|
20530             4[0246]|
20531             54|
20532             6[03]|
20533             90
20534           </leadingDigits>
20535           <format>$1-$2 $3</format>
20536           <intlFormat>$1 $2 $3</intlFormat>
20537         </numberFormat>
20538         <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
20539           <leadingDigits>
20540             1[2457]|
20541             2[2457-9]|
20542             3[0247-9]|
20543             4[1357-9]|
20544             5[0-35-9]|
20545             6[124-9]|
20546             9(?:
20547               [125-8]|
20548               3[0-5]|
20549               4[0-3]
20550             )
20551           </leadingDigits>
20552           <format>$1-$2 $3 $4</format>
20553           <intlFormat>$1 $2 $3 $4</intlFormat>
20554         </numberFormat>
20555         <numberFormat pattern="(\d{3})(\d{2,3})(\d{2})">
20556           <leadingDigits>
20557             1[2457]|
20558             2[2457-9]|
20559             3[0247-9]|
20560             4[1357-9]|
20561             5[0-35-9]|
20562             6[124-9]|
20563             9(?:
20564               [125-8]|
20565               3[0-5]|
20566               4[0-3]
20567             )
20568           </leadingDigits>
20569           <format>$1-$2 $3</format>
20570           <intlFormat>$1 $2 $3</intlFormat>
20571         </numberFormat>
20572         <numberFormat pattern="(7\d)(\d{3})(\d{2})(\d{2})">
20573           <leadingDigits>7</leadingDigits>
20574           <format>$1-$2 $3 $4</format>
20575           <intlFormat>$1 $2 $3 $4</intlFormat>
20576         </numberFormat>
20577         <numberFormat pattern="(20)(\d{2,3})(\d{2})">
20578           <leadingDigits>20</leadingDigits>
20579           <format>$1-$2 $3</format>
20580           <intlFormat>$1 $2 $3</intlFormat>
20581         </numberFormat>
20582         <numberFormat pattern="(9[034]\d)(\d{2})(\d{2})(\d{3})">
20583           <leadingDigits>9[034]</leadingDigits>
20584           <format>$1-$2 $3 $4</format>
20585           <intlFormat>$1 $2 $3 $4</intlFormat>
20586         </numberFormat>
20587       </availableFormats>
20588       <generalDesc>
20589         <nationalNumberPattern>[1-9]\d{6,9}</nationalNumberPattern>
20590         <possibleNumberPattern>\d{5,10}</possibleNumberPattern>
20591       </generalDesc>
20592       <fixedLine>
20593         <nationalNumberPattern>
20594           1(?:
20595             0[1-8]\d{6}|
20596             [136]\d{5,7}|
20597             (?:
20598               2[0-35]|
20599               4[0-4]|
20600               5[0-25-9]|
20601               7[13-6]|
20602               [89]\d
20603             )\d{5,6}
20604           )|
20605           2(?:
20606             [136]\d{5,7}|
20607             (?:
20608               2[0-7]|
20609               4[0136-8]|
20610               5[0138]|
20611               7[018]|
20612               8[01]|
20613               9[0-57]
20614             )\d{5,6}
20615           )|
20616           3(?:
20617             [356]\d{5,7}|
20618             (?:
20619               0[0-4]|
20620               1\d|
20621               2[0-25]|
20622               4[056]|
20623               7[0-2]|
20624               8[0-3]|
20625               9[023]
20626             )\d{5,6}
20627           )|
20628           4(?:
20629             [0246]\d{5,7}|
20630             (?:
20631               1[0-8]|
20632               3[0135]|
20633               5[14-79]|
20634               7[0-246-9]|
20635               8[0156]|
20636               9[0-689]
20637             )\d{5,6}
20638           )|
20639           5(?:
20640             0[0-6]|
20641             [15][0-5]|
20642             2[0-68]|
20643             3[0-4]|
20644             4\d|
20645             6[03-5]|
20646             7[013]|
20647             8[0-79]|
20648             9[01]
20649           )\d{5,6}|
20650           6(?:
20651             [03]\d{5,7}|
20652             (?:
20653               1[1-3]|
20654               2[0-4]|
20655               4[02-57]|
20656               5[0-37]|
20657               6[0-3]|
20658               7[0-2]|
20659               8[0247]|
20660               9[0-356]
20661             )\d{5,6}
20662           )|
20663           8\d{6,8}|
20664           9(?:
20665             0\d{5,7}|
20666             (?:
20667               1[0-68]|
20668               2\d|
20669               3[02-59]|
20670               [45][0-4]|
20671               [68][01]|
20672               7[0135-8]
20673             )\d{5,6}
20674           )
20675         </nationalNumberPattern>
20676         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
20677         <exampleNumber>8123456</exampleNumber>
20678       </fixedLine>
20679       <mobile>
20680         <nationalNumberPattern>7[0236]\d{7}</nationalNumberPattern>
20681         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20682         <exampleNumber>701234567</exampleNumber>
20683       </mobile>
20684       <pager>
20685         <nationalNumberPattern>74\d{7}</nationalNumberPattern>
20686         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20687         <exampleNumber>741234567</exampleNumber>
20688       </pager>
20689       <tollFree>
20690         <nationalNumberPattern>20\d{4,7}</nationalNumberPattern>
20691         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
20692         <exampleNumber>201234567</exampleNumber>
20693       </tollFree>
20694       <premiumRate>
20695         <nationalNumberPattern>
20696           9(?:
20697             00|
20698             39|
20699             44
20700           )\d{7}
20701         </nationalNumberPattern>
20702         <possibleNumberPattern>\d{10}</possibleNumberPattern>
20703         <exampleNumber>9001234567</exampleNumber>
20704       </premiumRate>
20705       <sharedCost>
20706         <nationalNumberPattern>77\d{7}</nationalNumberPattern>
20707         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20708         <exampleNumber>771234567</exampleNumber>
20709       </sharedCost>
20710       <personalNumber>
20711         <nationalNumberPattern>75\d{7}</nationalNumberPattern>
20712         <possibleNumberPattern>\d{9}</possibleNumberPattern>
20713         <exampleNumber>751234567</exampleNumber>
20714       </personalNumber>
20715       <emergency>
20716         <nationalNumberPattern>
20717           112|
20718           90000
20719         </nationalNumberPattern>
20720         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
20721         <exampleNumber>112</exampleNumber>
20722       </emergency>
20723     </territory>
20724
20725     <!-- Singapore -->
20726     <!-- http://www.ida.gov.sg/Policies-and-Regulations/Industry-and-Licensees/Numbering/National-Numbering-Plan-and-Allocation-Process.aspx -->
20727     <territory id="SG" countryCode="65" internationalPrefix="0[0-3]\d">
20728       <availableFormats>
20729         <numberFormat pattern="([3689]\d{3})(\d{4})">
20730           <leadingDigits>
20731             [369]|
20732             8[1-9]
20733           </leadingDigits>
20734           <format>$1 $2</format>
20735         </numberFormat>
20736         <numberFormat pattern="(1[89]00)(\d{3})(\d{4})">
20737           <leadingDigits>1[89]</leadingDigits>
20738           <format>$1 $2 $3</format>
20739         </numberFormat>
20740         <numberFormat pattern="(7000)(\d{4})(\d{3})">
20741           <leadingDigits>70</leadingDigits>
20742           <format>$1 $2 $3</format>
20743         </numberFormat>
20744         <numberFormat pattern="(800)(\d{3})(\d{4})">
20745           <leadingDigits>80</leadingDigits>
20746           <format>$1 $2 $3</format>
20747         </numberFormat>
20748       </availableFormats>
20749       <generalDesc>
20750         <!-- We have a stricter national number pattern for numbers beginning with 6 to enable us to
20751              easily strip off leading "65" country codes. -->
20752         <nationalNumberPattern>
20753           [36]\d{7}|
20754           [17-9]\d{7,10}
20755         </nationalNumberPattern>
20756         <possibleNumberPattern>\d{8,11}</possibleNumberPattern>
20757       </generalDesc>
20758       <fixedLine>
20759         <nationalNumberPattern>6[1-9]\d{6}</nationalNumberPattern>
20760         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20761         <exampleNumber>61234567</exampleNumber>
20762       </fixedLine>
20763       <mobile>
20764         <nationalNumberPattern>
20765           (?:
20766             8[1-7]|
20767             9[0-8]
20768           )\d{6}
20769         </nationalNumberPattern>
20770         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20771         <exampleNumber>81234567</exampleNumber>
20772       </mobile>
20773       <tollFree>
20774         <nationalNumberPattern>1?800\d{7}</nationalNumberPattern>
20775         <possibleNumberPattern>\d{10,11}</possibleNumberPattern>
20776         <exampleNumber>18001234567</exampleNumber>
20777       </tollFree>
20778       <premiumRate>
20779         <nationalNumberPattern>1900\d{7}</nationalNumberPattern>
20780         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20781         <exampleNumber>19001234567</exampleNumber>
20782       </premiumRate>
20783       <voip>
20784         <nationalNumberPattern>3[12]\d{6}</nationalNumberPattern>
20785         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20786         <exampleNumber>31234567</exampleNumber>
20787       </voip>
20788       <uan>
20789         <!-- Although not detailed in the plan beyond mentioning their existence, it seems 7000
20790              numbers are used for companies. Most of the online examples are in fact alpha-numbers.
20791              -->
20792         <nationalNumberPattern>7000\d{7}</nationalNumberPattern>
20793         <possibleNumberPattern>\d{11}</possibleNumberPattern>
20794         <exampleNumber>70001234567</exampleNumber>
20795       </uan>
20796       <emergency>
20797         <nationalNumberPattern>99[359]</nationalNumberPattern>
20798         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20799         <exampleNumber>999</exampleNumber>
20800       </emergency>
20801     </territory>
20802
20803     <!-- Saint Helena -->
20804     <!-- http://www.itu.int/oth/T02020000AF/en -->
20805     <territory id="SH" countryCode="290" internationalPrefix="00" mainCountryForCode="true">
20806       <!-- Numbers are formatted as a block. -->
20807       <generalDesc>
20808         <nationalNumberPattern>[2-79]\d{3,4}</nationalNumberPattern>
20809         <possibleNumberPattern>\d{4,5}</possibleNumberPattern>
20810       </generalDesc>
20811       <fixedLine>
20812         <!-- St Helena is changing to 5 digits on October 1. 2013 -> we support both patterns here.
20813              The new pattern is first, followed by the old (hence the repetition of the leading 2).
20814              -->
20815         <nationalNumberPattern>
20816           2(?:
20817             [0-57-9]\d|
20818             6[4-9]
20819           )\d{2}|
20820           (?:
20821             [2-46]\d|
20822             7[01]
20823           )\d{2}
20824         </nationalNumberPattern>
20825         <!-- Using St Helena Tourism as the example number. -->
20826         <exampleNumber>2158</exampleNumber>
20827       </fixedLine>
20828       <mobile>
20829         <nationalNumberPattern>NA</nationalNumberPattern>
20830         <possibleNumberPattern>NA</possibleNumberPattern>
20831       </mobile>
20832       <premiumRate>
20833         <nationalNumberPattern>
20834           (?:
20835             [59]\d|
20836             7[2-9]
20837           )\d{2}
20838         </nationalNumberPattern>
20839         <exampleNumber>5012</exampleNumber>
20840       </premiumRate>
20841       <emergency>
20842         <!-- http://www.sthelenatourism.com/pages/fast_facts.html#Emergencies -->
20843         <nationalNumberPattern>
20844           9(?:
20845             11|
20846             99
20847           )
20848         </nationalNumberPattern>
20849         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20850         <exampleNumber>999</exampleNumber>
20851       </emergency>
20852     </territory>
20853
20854     <!-- Slovenia -->
20855     <!-- http://www.itu.int/oth/T02020000BE/en -->
20856     <territory id="SI" countryCode="386" internationalPrefix="00"
20857                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
20858       <availableFormats>
20859         <numberFormat nationalPrefixFormattingRule="($NP$FG)"
20860           pattern="(\d)(\d{3})(\d{2})(\d{2})">
20861           <leadingDigits>
20862             [12]|
20863             3[4-8]|
20864             4[24-8]|
20865             5[2-8]|
20866             7[3-8]
20867           </leadingDigits>
20868           <format>$1 $2 $3 $4</format>
20869           </numberFormat>
20870         <numberFormat pattern="([3-7]\d)(\d{3})(\d{3})">
20871           <leadingDigits>
20872             [37][01]|
20873             4[019]|
20874             51|
20875             6
20876           </leadingDigits>
20877           <format>$1 $2 $3</format>
20878           </numberFormat>
20879         <numberFormat pattern="([89][09])(\d{3,6})">
20880           <leadingDigits>[89][09]</leadingDigits>
20881           <format>$1 $2</format>
20882         </numberFormat>
20883         <numberFormat pattern="([58]\d{2})(\d{5})">
20884           <leadingDigits>
20885             59|
20886             8[1-3]
20887           </leadingDigits>
20888           <format>$1 $2</format>
20889         </numberFormat>
20890       </availableFormats>
20891       <generalDesc>
20892         <nationalNumberPattern>
20893           [1-7]\d{6,7}|
20894           [89]\d{4,7}
20895         </nationalNumberPattern>
20896         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20897       </generalDesc>
20898       <fixedLine>
20899         <nationalNumberPattern>
20900           (?:
20901             1\d|
20902             [25][2-8]|
20903             3[4-8]|
20904             4[24-8]|
20905             7[3-8]
20906           )\d{6}
20907         </nationalNumberPattern>
20908         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
20909         <exampleNumber>11234567</exampleNumber>
20910       </fixedLine>
20911       <mobile>
20912         <!-- We include 049 here - it is VoIP in the plan, but SMS messages have been successfully
20913              delivered - and it is run by Mobitel. There are also mobile numbers found on the
20914              internet with this prefix - it is apparently used in Kosovo. Also
20915              added 068, which is used by the mobile operator bob.si -->
20916         <nationalNumberPattern>
20917           (?:
20918             [37][01]|
20919             4[019]|
20920             51|
20921             6[48]
20922           )\d{6}
20923         </nationalNumberPattern>
20924         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20925         <exampleNumber>31234567</exampleNumber>
20926       </mobile>
20927       <tollFree>
20928         <nationalNumberPattern>80\d{4,6}</nationalNumberPattern>
20929         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
20930         <exampleNumber>80123456</exampleNumber>
20931       </tollFree>
20932       <premiumRate>
20933         <!-- Includes televoting, mass calling -->
20934         <nationalNumberPattern>
20935           90\d{4,6}|
20936           89[1-3]\d{2,5}
20937         </nationalNumberPattern>
20938         <possibleNumberPattern>\d{5,8}</possibleNumberPattern>
20939         <exampleNumber>90123456</exampleNumber>
20940       </premiumRate>
20941       <voip>
20942         <nationalNumberPattern>
20943           (?:
20944             59|
20945             8[1-3]
20946           )\d{6}
20947         </nationalNumberPattern>
20948         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20949         <exampleNumber>59012345</exampleNumber>
20950       </voip>
20951       <emergency>
20952         <nationalNumberPattern>11[23]</nationalNumberPattern>
20953         <possibleNumberPattern>\d{3}</possibleNumberPattern>
20954         <exampleNumber>112</exampleNumber>
20955       </emergency>
20956     </territory>
20957
20958     <!-- Svalbard -->
20959     <!-- Metadata shared with Norway. -->
20960     <!-- http://www.npt.no/pt_internet/numsys/E.164.pdf -->
20961     <territory id="SJ" countryCode="47" internationalPrefix="00" leadingZeroPossible="true">
20962       <generalDesc>
20963         <nationalNumberPattern>
20964           0\d{4}|
20965           [4789]\d{7}
20966         </nationalNumberPattern>
20967         <possibleNumberPattern>\d{5}(?:\d{3})?</possibleNumberPattern>
20968       </generalDesc>
20969       <fixedLine>
20970         <nationalNumberPattern>79\d{6}</nationalNumberPattern>
20971         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20972         <exampleNumber>79123456</exampleNumber>
20973       </fixedLine>
20974       <!-- Copied from Norway metadata. -->
20975       <mobile>
20976         <nationalNumberPattern>
20977           (?:
20978             4[015-8]|
20979             5[89]|
20980             9\d
20981           )\d{6}
20982         </nationalNumberPattern>
20983         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20984         <exampleNumber>41234567</exampleNumber>
20985       </mobile>
20986       <tollFree>
20987         <nationalNumberPattern>80[01]\d{5}</nationalNumberPattern>
20988         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20989         <exampleNumber>80012345</exampleNumber>
20990       </tollFree>
20991       <premiumRate>
20992         <nationalNumberPattern>82[09]\d{5}</nationalNumberPattern>
20993         <possibleNumberPattern>\d{8}</possibleNumberPattern>
20994         <exampleNumber>82012345</exampleNumber>
20995       </premiumRate>
20996       <sharedCost>
20997         <nationalNumberPattern>
20998           810(?:
20999             0[0-6]|
21000             [2-8]\d
21001           )\d{3}
21002         </nationalNumberPattern>
21003         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21004         <exampleNumber>81021234</exampleNumber>
21005       </sharedCost>
21006       <personalNumber>
21007         <nationalNumberPattern>880\d{5}</nationalNumberPattern>
21008         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21009         <exampleNumber>88012345</exampleNumber>
21010       </personalNumber>
21011       <voip>
21012         <nationalNumberPattern>85[0-5]\d{5}</nationalNumberPattern>
21013         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21014         <exampleNumber>85012345</exampleNumber>
21015       </voip>
21016       <uan>
21017         <!-- Includes some 810 local-rate numbers, and long-distance rate numbers. -->
21018         <nationalNumberPattern>
21019           0\d{4}|
21020           81(?:
21021             0(?:
21022               0[7-9]|
21023               1\d
21024             )|
21025             5\d{2}
21026           )\d{3}
21027         </nationalNumberPattern>
21028         <exampleNumber>01234</exampleNumber>
21029       </uan>
21030       <voicemail>
21031         <nationalNumberPattern>81[23]\d{5}</nationalNumberPattern>
21032         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21033         <exampleNumber>81212345</exampleNumber>
21034       </voicemail>
21035       <!-- Same as Norway, according to http://kho.unis.no/nordlysstasjon_useful.htm -->
21036       <emergency>
21037         <nationalNumberPattern>11[023]</nationalNumberPattern>
21038         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21039         <exampleNumber>112</exampleNumber>
21040       </emergency>
21041     </territory>
21042
21043     <!-- Slovakia -->
21044     <!-- http://www.itu.int/oth/T02020000BD/en -->
21045     <territory id="SK" countryCode="421" internationalPrefix="00"
21046                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
21047       <availableFormats>
21048         <numberFormat pattern="(2)(\d{3})(\d{3})(\d{2})">
21049           <leadingDigits>2</leadingDigits>
21050           <format>$1/$2 $3 $4</format>
21051         </numberFormat>
21052         <numberFormat pattern="([3-5]\d)(\d{3})(\d{2})(\d{2})">
21053           <leadingDigits>[3-5]</leadingDigits>
21054           <format>$1/$2 $3 $4</format>
21055         </numberFormat>
21056         <numberFormat pattern="([689]\d{2})(\d{3})(\d{3})">
21057           <leadingDigits>[689]</leadingDigits>
21058           <format>$1 $2 $3</format>
21059         </numberFormat>
21060       </availableFormats>
21061       <generalDesc>
21062         <nationalNumberPattern>[2-689]\d{8}</nationalNumberPattern>
21063         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21064       </generalDesc>
21065       <noInternationalDialling>
21066         <nationalNumberPattern>
21067           (?:
21068             8(?:
21069               00|
21070               [5-9]\d
21071             )|
21072             9(?:
21073               00|
21074               [78]\d
21075             )
21076           )\d{6}
21077         </nationalNumberPattern>
21078         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21079         <exampleNumber>800123456</exampleNumber>
21080       </noInternationalDialling>
21081       <fixedLine>
21082         <nationalNumberPattern>[2-5]\d{8}</nationalNumberPattern>
21083         <exampleNumber>212345678</exampleNumber>
21084       </fixedLine>
21085       <mobile>
21086         <!-- 948 isn't in the number pattern, but many examples using this have been found, so
21087              deeming it valid for now. -->
21088         <nationalNumberPattern>
21089           9(?:
21090             0[1-8]|
21091             1[0-24-9]|
21092             4[0489]
21093           )\d{6}
21094         </nationalNumberPattern>
21095         <exampleNumber>912123456</exampleNumber>
21096       </mobile>
21097       <tollFree>
21098         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
21099         <exampleNumber>800123456</exampleNumber>
21100       </tollFree>
21101       <premiumRate>
21102         <nationalNumberPattern>
21103           9(?:
21104             [78]\d{7}|
21105             00\d{6}
21106           )
21107         </nationalNumberPattern>
21108         <exampleNumber>900123456</exampleNumber>
21109       </premiumRate>
21110       <sharedCost>
21111         <nationalNumberPattern>8[5-9]\d{7}</nationalNumberPattern>
21112         <exampleNumber>850123456</exampleNumber>
21113       </sharedCost>
21114       <voip>
21115         <nationalNumberPattern>
21116           6(?:
21117             5[0-4]|
21118             9[0-6]
21119           )\d{6}
21120         </nationalNumberPattern>
21121         <exampleNumber>690123456</exampleNumber>
21122       </voip>
21123       <uan>
21124         <nationalNumberPattern>96\d{7}</nationalNumberPattern>
21125         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21126         <exampleNumber>961234567</exampleNumber>
21127       </uan>
21128       <emergency>
21129         <nationalNumberPattern>
21130           1(?:
21131             12|
21132             5[058]
21133           )
21134         </nationalNumberPattern>
21135         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21136         <exampleNumber>112</exampleNumber>
21137       </emergency>
21138     </territory>
21139
21140     <!-- Sierra Leone -->
21141     <!-- http://www.itu.int/oth/T02020000BB/en -->
21142     <territory id="SL" countryCode="232" internationalPrefix="00"
21143                nationalPrefix="0" nationalPrefixFormattingRule="($NP$FG)">
21144       <availableFormats>
21145         <!-- Following formatting of online yellow pages www.leonedirect.com -->
21146         <numberFormat pattern="(\d{2})(\d{6})">
21147           <format>$1 $2</format>
21148         </numberFormat>
21149       </availableFormats>
21150       <generalDesc>
21151         <nationalNumberPattern>[2-578]\d{7}</nationalNumberPattern>
21152         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
21153       </generalDesc>
21154       <fixedLine>
21155         <nationalNumberPattern>[235]2[2-4][2-9]\d{4}</nationalNumberPattern>
21156         <exampleNumber>22221234</exampleNumber>
21157       </fixedLine>
21158       <mobile>
21159         <nationalNumberPattern>
21160           (?:
21161             2[15]|
21162             3[034]|
21163             4[04]|
21164             5[05]|
21165             7[6-9]|
21166             88
21167           )\d{6}
21168         </nationalNumberPattern>
21169         <exampleNumber>25123456</exampleNumber>
21170       </mobile>
21171       <emergency>
21172         <nationalNumberPattern>
21173           (?:
21174             01|
21175             99
21176           )9
21177         </nationalNumberPattern>
21178         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21179         <exampleNumber>999</exampleNumber>
21180       </emergency>
21181     </territory>
21182
21183     <!-- San Marino -->
21184     <!-- http://www.itu.int/oth/T02020000B5/en -->
21185     <!-- http://en.wikipedia.org/wiki/%2B39 (Information about Italy) -->
21186     <!-- http://en.wikipedia.org/wiki/%2B378-->
21187     <!-- San Marino fixed-line numbers have an area code of "0549". However, this seems to be
21188          optional when dialling from outside the country; the phone number can be reached both with
21189          and without this area code. The nationalPrefixForParsing and nationalPrefixTransformRule
21190          are used to ensure that if the 0549 is not present, it will be added. -->
21191     <territory id="SM" countryCode="378" internationalPrefix="00"
21192                nationalPrefixForParsing="(?:0549)?([89]\d{5})" nationalPrefixTransformRule="0549$1"
21193                leadingZeroPossible="true">
21194       <availableFormats>
21195         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21196           <leadingDigits>[5-7]</leadingDigits>
21197           <format>$1 $2 $3 $4</format>
21198         </numberFormat>
21199         <!-- We follow the guidelines of the yellow-pages when formatting in national format. -->
21200         <numberFormat pattern="(0549)(\d{6})">
21201           <leadingDigits>0</leadingDigits>
21202           <format>$1 $2</format>
21203           <!-- We follow the guidelines of the Telecommunications Document published on ITU when
21204                formatting in international format. -->
21205           <intlFormat>($1) $2</intlFormat>
21206         </numberFormat>
21207         <!-- A rule in case the number has been stored without the leading 0549 necessary for
21208              fixed-lines. -->
21209         <numberFormat pattern="(\d{6})">
21210           <leadingDigits>[89]</leadingDigits>
21211           <format>0549 $1</format>
21212           <intlFormat>(0549) $1</intlFormat>
21213         </numberFormat>
21214       </availableFormats>
21215       <generalDesc>
21216         <nationalNumberPattern>[05-7]\d{7,9}</nationalNumberPattern>
21217         <possibleNumberPattern>\d{6,10}</possibleNumberPattern>
21218       </generalDesc>
21219       <!-- Example numbers provided by the Telecommunications Services. -->
21220       <fixedLine>
21221         <nationalNumberPattern>
21222           0549(?:
21223             8[0157-9]|
21224             9\d
21225           )\d{4}
21226         </nationalNumberPattern>
21227         <exampleNumber>0549886377</exampleNumber>
21228       </fixedLine>
21229       <mobile>
21230         <nationalNumberPattern>6[16]\d{6}</nationalNumberPattern>
21231         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21232         <exampleNumber>66661212</exampleNumber>
21233       </mobile>
21234       <premiumRate>
21235         <!-- Includes Video Call numbers. -->
21236         <nationalNumberPattern>7[178]\d{6}</nationalNumberPattern>
21237         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21238         <exampleNumber>71123456</exampleNumber>
21239       </premiumRate>
21240       <voip>
21241         <nationalNumberPattern>5[158]\d{6}</nationalNumberPattern>
21242         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21243         <exampleNumber>58001110</exampleNumber>
21244       </voip>
21245       <emergency>
21246         <nationalNumberPattern>11[358]</nationalNumberPattern>
21247         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21248         <exampleNumber>113</exampleNumber>
21249       </emergency>
21250     </territory>
21251
21252     <!-- Senegal -->
21253     <!-- http://www.itu.int/oth/T02020000B8/en -->
21254     <territory id="SN" countryCode="221" internationalPrefix="00">
21255       <availableFormats>
21256         <!-- Using yellow pages and online telecom company formatting, rather than that implied in
21257              the national numbering plan. -->
21258         <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
21259           <format>$1 $2 $3 $4</format>
21260         </numberFormat>
21261       </availableFormats>
21262       <generalDesc>
21263         <nationalNumberPattern>[37]\d{8}</nationalNumberPattern>
21264         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21265       </generalDesc>
21266       <fixedLine>
21267         <nationalNumberPattern>
21268           3(?:
21269             0(?:
21270               1[01]|
21271               80
21272             )|
21273             3(?:
21274               8[1-9]|
21275               9[2-9]
21276             )
21277           )\d{5}
21278         </nationalNumberPattern>
21279         <exampleNumber>301012345</exampleNumber>
21280       </fixedLine>
21281       <mobile>
21282         <nationalNumberPattern>
21283           7(?:
21284             0(?:
21285               [01279]0|
21286               3[03]|
21287               4[05]|
21288               5[06]|
21289               6[03-5]|
21290               8[029]
21291             )|
21292             6(?:
21293               1[23]|
21294               2[89]|
21295               3[3489]|
21296               4[6-9]|
21297               5\d|
21298               6[3-9]|
21299               7[45]|
21300               8[3-8]
21301             )|
21302             7\d{2}|
21303             8(?:
21304               01|
21305               1[01]
21306             )
21307           )\d{5}
21308         </nationalNumberPattern>
21309         <exampleNumber>701012345</exampleNumber>
21310       </mobile>
21311       <voip>
21312         <nationalNumberPattern>33301\d{4}</nationalNumberPattern>
21313         <exampleNumber>333011234</exampleNumber>
21314       </voip>
21315       <!-- No emergency numbers information can be found. -->
21316     </territory>
21317
21318     <!-- Somalia -->
21319     <!-- http://www.itu.int/oth/T02020000C0/en -->
21320     <!-- http://en.wikipedia.org/wiki/+252 -->
21321     <!-- This document seems to cover only a small set of prefixes in Somalia. Somalia has limited
21322          information available, and the numerous telecom carriers were previously working under an
21323          unregulated environment. The extra prefixes were added from the contact phone numbers of
21324          the countries main telecom operators. We also have received information that a national
21325          prefix of "0" is required when dialling from different regions (e.g. Puntland, Somaliland)
21326          for some operators, so that is included here although we do not use it when formatting. -->
21327     <territory id="SO" countryCode="252" internationalPrefix="00" nationalPrefix="0">
21328       <availableFormats>
21329         <!-- These follow formats online, such as www.hortel.net/contact_us.html -->
21330         <numberFormat pattern="(\d)(\d{6})">
21331           <leadingDigits>
21332             2[0-79]|
21333             [13-5]
21334           </leadingDigits>
21335           <format>$1 $2</format>
21336         </numberFormat>
21337         <numberFormat pattern="(\d)(\d{7})">
21338           <leadingDigits>
21339             24|
21340             [67]
21341           </leadingDigits>
21342           <format>$1 $2</format>
21343         </numberFormat>
21344         <numberFormat pattern="(\d{2})(\d{5,7})">
21345           <leadingDigits>
21346             15|
21347             28|
21348             6[1378]|
21349             9
21350           </leadingDigits>
21351           <format>$1 $2</format>
21352         </numberFormat>
21353         <numberFormat pattern="(69\d)(\d{6})">
21354           <leadingDigits>69</leadingDigits>
21355           <format>$1 $2</format>
21356         </numberFormat>
21357       </availableFormats>
21358       <generalDesc>
21359         <nationalNumberPattern>[1-79]\d{6,8}</nationalNumberPattern>
21360         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
21361       </generalDesc>
21362       <fixedLine>
21363         <!-- Apparently Telesom and Nationlink (Somaliland) both use the prefix 2. We exclude 28
21364              here since that is apparently used for mobile. -->
21365         <nationalNumberPattern>
21366           (?:
21367             [134]\d|
21368             2[0-79]|
21369             5[57-9]
21370           )\d{5}
21371         </nationalNumberPattern>
21372         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21373         <!-- Example numbers are test numbers from the document. -->
21374         <exampleNumber>5522010</exampleNumber>
21375       </fixedLine>
21376       <mobile>
21377         <!-- 24 is used by the carrier Telesom. 28 is used by Nationlink. 6[89] are apparently used
21378              by Nationlink Somalia, 67 by Nationlink Puntland, and 61 by Hormuud. 7X is used by
21379              Somtel. 6 followed by only 7 digits is used by Telecom. We have received information
21380              from Golis Telecom that 90 numbers are extended by 1 digit by becoming 907.
21381              Note that the ITU update of Apr. 2013 suggests there is a longer 707 XXX XXX range for
21382              mobile, but the document is not self consistent, so this is probably a typo. 63 was
21383              found in numbers online. -->
21384         <nationalNumberPattern>
21385           (?:
21386             15\d|
21387             2(?:
21388               4\d|
21389               8
21390             )|
21391             6[137-9]?\d{2}|
21392             7\d{2}|
21393             9(?:
21394               07|
21395               [19]
21396             )\d
21397           )\d{5}
21398         </nationalNumberPattern>
21399         <exampleNumber>907792024</exampleNumber>
21400       </mobile>
21401       <!-- According to the following webpage, there is no emergency number in Somalia:
21402            http://www.netglobers.com/africa/somalia-emergency-numbers-in-somalia.html -->
21403     </territory>
21404
21405     <!-- Suriname -->
21406     <!-- http://www.itu.int/oth/T02020000C5/en -->
21407     <territory id="SR" countryCode="597" internationalPrefix="00">
21408       <availableFormats>
21409         <!-- Following conventions used in the Suriname Yellow Pages. -->
21410         <numberFormat pattern="(\d{3})(\d{3})">
21411           <leadingDigits>
21412             [2-4]|
21413             5[2-58]
21414           </leadingDigits>
21415           <format>$1-$2</format>
21416         </numberFormat>
21417         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
21418           <leadingDigits>56</leadingDigits>
21419           <format>$1-$2-$3</format>
21420         </numberFormat>
21421         <numberFormat pattern="(\d{3})(\d{4})">
21422           <leadingDigits>[6-8]</leadingDigits>
21423           <format>$1-$2</format>
21424         </numberFormat>
21425       </availableFormats>
21426       <generalDesc>
21427         <nationalNumberPattern>[2-8]\d{5,6}</nationalNumberPattern>
21428         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
21429       </generalDesc>
21430       <fixedLine>
21431         <!-- Includes non-geographic WLL-CDMA Fixed Lines. -->
21432         <nationalNumberPattern>
21433           (?:
21434             2[1-3]|
21435             3[0-7]|
21436             4\d|
21437             5[2-58]|
21438             68\d
21439           )\d{4}
21440         </nationalNumberPattern>
21441         <exampleNumber>211234</exampleNumber>
21442       </fixedLine>
21443       <mobile>
21444         <!-- Adding 74 from numbers found online. -->
21445         <nationalNumberPattern>
21446           (?:
21447             7[1-57]|
21448             8[1-9]
21449           )\d{5}
21450         </nationalNumberPattern>
21451         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21452         <exampleNumber>7412345</exampleNumber>
21453       </mobile>
21454       <voip>
21455         <nationalNumberPattern>56\d{4}</nationalNumberPattern>
21456         <possibleNumberPattern>\d{6}</possibleNumberPattern>
21457         <exampleNumber>561234</exampleNumber>
21458       </voip>
21459       <emergency>
21460         <nationalNumberPattern>115</nationalNumberPattern>
21461         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21462         <exampleNumber>115</exampleNumber>
21463       </emergency>
21464     </territory>
21465
21466     <!-- South Sudan -->
21467     <!-- http://www.itu.int/oth/T02020000F9/en -->
21468     <!-- http://en.wikipedia.org/wiki/+211 -->
21469     <territory id="SS" countryCode="211" internationalPrefix="00" nationalPrefix="0">
21470       <availableFormats>
21471         <numberFormat pattern="(\d{3})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
21472           <format>$1 $2 $3</format>
21473         </numberFormat>
21474       </availableFormats>
21475       <generalDesc>
21476         <nationalNumberPattern>[19]\d{8}</nationalNumberPattern>
21477         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21478       </generalDesc>
21479       <fixedLine>
21480         <nationalNumberPattern>18\d{7}</nationalNumberPattern>
21481         <exampleNumber>181234567</exampleNumber>
21482       </fixedLine>
21483       <mobile>
21484         <nationalNumberPattern>
21485           (?:
21486             12|
21487             9[1257]
21488           )\d{7}
21489         </nationalNumberPattern>
21490         <exampleNumber>977123456</exampleNumber>
21491       </mobile>
21492     </territory>
21493
21494     <!-- Sao Tome and Principe -->
21495     <!-- http://www.itu.int/oth/T02020000B6/en -->
21496     <territory id="ST" countryCode="239" internationalPrefix="00">
21497       <availableFormats>
21498         <numberFormat pattern="(\d{3})(\d{4})">
21499           <format>$1 $2</format>
21500         </numberFormat>
21501       </availableFormats>
21502       <generalDesc>
21503         <nationalNumberPattern>[29]\d{6}</nationalNumberPattern>
21504         <possibleNumberPattern>\d{7}</possibleNumberPattern>
21505       </generalDesc>
21506       <fixedLine>
21507         <nationalNumberPattern>22\d{5}</nationalNumberPattern>
21508         <exampleNumber>2221234</exampleNumber>
21509       </fixedLine>
21510       <mobile>
21511         <nationalNumberPattern>9[89]\d{5}</nationalNumberPattern>
21512         <exampleNumber>9812345</exampleNumber>
21513       </mobile>
21514       <emergency>
21515         <!-- http://www.netglobers.com/africa/s%C3%A3o-tome-and-principe-emergency-numbers-in-s%C3%A3o-tome-and-principe.html
21516              -->
21517         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1010.html -->
21518         <!-- http://www.tipredaktion.net/consumer/lufthansa_en/tip-ST-1.html -->
21519         <!-- Emergency numbers longer than 3 digits covered by fixed-line. -->
21520         <nationalNumberPattern>112</nationalNumberPattern>
21521         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21522         <exampleNumber>112</exampleNumber>
21523       </emergency>
21524     </territory>
21525
21526     <!-- El Salvador -->
21527     <!-- http://www.itu.int/oth/T020200003F/en -->
21528     <!-- http://www.siget.gob.sv/BusquedaPublica.aspx?pagina=3&tipo=27&titulo=t8&sector=2&ordenar=&dir=DESC
21529          -->
21530     <territory id="SV" countryCode="503" internationalPrefix="00">
21531       <availableFormats>
21532         <numberFormat pattern="(\d{4})(\d{4})">
21533           <leadingDigits>[267]</leadingDigits>
21534           <format>$1 $2</format>
21535         </numberFormat>
21536         <numberFormat pattern="(\d{3})(\d{4})">
21537           <leadingDigits>[89]</leadingDigits>
21538           <format>$1 $2</format>
21539         </numberFormat>
21540         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
21541           <leadingDigits>[89]</leadingDigits>
21542           <format>$1 $2 $3</format>
21543         </numberFormat>
21544       </availableFormats>
21545       <generalDesc>
21546         <nationalNumberPattern>
21547           [267]\d{7}|
21548           [89]\d{6}(?:\d{4})?
21549         </nationalNumberPattern>
21550         <possibleNumberPattern>
21551           \d{7,8}|
21552           \d{11}
21553         </possibleNumberPattern>
21554       </generalDesc>
21555       <fixedLine>
21556         <!-- Numbers starting with 20, 27, 28 and 29 are reserved but not yet used. -->
21557         <nationalNumberPattern>2[1-6]\d{6}</nationalNumberPattern>
21558         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21559         <exampleNumber>21234567</exampleNumber>
21560       </fixedLine>
21561       <mobile>
21562         <nationalNumberPattern>[67]\d{7}</nationalNumberPattern>
21563         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21564         <exampleNumber>70123456</exampleNumber>
21565       </mobile>
21566       <tollFree>
21567         <!-- Toll free numbers are either 800 NNNN or 800 NNNN NNNN. -->
21568         <nationalNumberPattern>800\d{4}(?:\d{4})?</nationalNumberPattern>
21569         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21570         <exampleNumber>8001234</exampleNumber>
21571       </tollFree>
21572       <premiumRate>
21573         <!-- Premium rate numbers are either 900 NNNN or 900 NNNN NNNN. -->
21574         <nationalNumberPattern>900\d{4}(?:\d{4})?</nationalNumberPattern>
21575         <possibleNumberPattern>\d{7}(?:\d{4})?</possibleNumberPattern>
21576         <exampleNumber>9001234</exampleNumber>
21577       </premiumRate>
21578       <emergency>
21579         <nationalNumberPattern>911</nationalNumberPattern>
21580         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21581         <exampleNumber>911</exampleNumber>
21582       </emergency>
21583     </territory>
21584
21585     <!-- Sint Maarten -->
21586     <!-- http://www.nanpa.com/pdf/PL_429.pdf -->
21587     <!-- http://www.itu.int/oth/T02020000F7/en -->
21588     <territory id="SX" countryCode="1" leadingDigits="721" nationalPrefix="1"
21589                internationalPrefix="011">
21590       <generalDesc>
21591         <!-- NANPA country - uses US formatting rules -->
21592         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
21593         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21594       </generalDesc>
21595       <fixedLine>
21596         <nationalNumberPattern>
21597           7215(?:
21598             4[2-8]|
21599             8[239]|
21600             9[056]
21601           )\d{4}
21602         </nationalNumberPattern>
21603         <exampleNumber>7215425678</exampleNumber>
21604       </fixedLine>
21605       <mobile>
21606         <!-- We assume we can send SMSs to the Fixed GSM numbers mentioned in the plan and hence
21607              include these as mobile numbers. -->
21608         <nationalNumberPattern>
21609           7215(?:
21610             1[02]|
21611             2\d|
21612             5[034679]|
21613             8[014-8]
21614           )\d{4}
21615         </nationalNumberPattern>
21616         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21617         <exampleNumber>7215205678</exampleNumber>
21618       </mobile>
21619       <tollFree>
21620         <nationalNumberPattern>
21621           8(?:
21622             00|
21623             55|
21624             66|
21625             77|
21626             88
21627           )[2-9]\d{6}
21628         </nationalNumberPattern>
21629         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21630         <exampleNumber>8002123456</exampleNumber>
21631       </tollFree>
21632       <premiumRate>
21633         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21634         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21635         <exampleNumber>9002123456</exampleNumber>
21636       </premiumRate>
21637       <personalNumber>
21638         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
21639         <nationalNumberPattern>
21640           5(?:
21641             00|
21642             33|
21643             44
21644           )[2-9]\d{6}
21645         </nationalNumberPattern>
21646         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21647         <exampleNumber>5002345678</exampleNumber>
21648       </personalNumber>
21649       <emergency>
21650         <!-- http://experiencestmartin.com/islandfacts/telephones.html -->
21651         <nationalNumberPattern>919</nationalNumberPattern>
21652         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21653         <exampleNumber>919</exampleNumber>
21654       </emergency>
21655     </territory>
21656
21657     <!-- Syrian Arab Republic -->
21658     <!-- http://www.itu.int/oth/T02020000C9/en -->
21659     <!-- http://en.wikipedia.org/wiki/%2B963 -->
21660     <territory id="SY" countryCode="963" internationalPrefix="00"
21661                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
21662                nationalPrefixOptionalWhenFormatting="true">
21663       <availableFormats>
21664         <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
21665           <leadingDigits>[1-5]</leadingDigits>
21666           <format>$1 $2 $3</format>
21667         </numberFormat>
21668         <numberFormat pattern="(9\d{2})(\d{3})(\d{3})">
21669           <leadingDigits>9</leadingDigits>
21670           <format>$1 $2 $3</format>
21671         </numberFormat>
21672       </availableFormats>
21673       <generalDesc>
21674         <nationalNumberPattern>[1-59]\d{7,8}</nationalNumberPattern>
21675         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
21676       </generalDesc>
21677       <fixedLine>
21678         <nationalNumberPattern>
21679           (?:
21680             1(?:
21681               1\d?|
21682               4\d|
21683               [2356]
21684             )|
21685             2[1-35]|
21686             3(?:
21687               [13]\d|
21688               4
21689             )|
21690             4[13]|
21691             5[1-3]
21692           )\d{6}
21693         </nationalNumberPattern>
21694         <exampleNumber>112345678</exampleNumber>
21695       </fixedLine>
21696       <mobile>
21697         <!-- Numbers have been found on the Internet for the prefixes 922, 93[046-8],
21698              95[138], and 96[05]. -->
21699         <nationalNumberPattern>
21700           9(?:
21701             22|
21702             [35][0-8]|
21703             4\d|
21704             6[024-9]|
21705             88|
21706             9[0-489]
21707           )\d{6}
21708         </nationalNumberPattern>
21709         <possibleNumberPattern>\d{9}</possibleNumberPattern>
21710         <exampleNumber>944567890</exampleNumber>
21711       </mobile>
21712       <!-- No tollFree or premiumRate information can be found. -->
21713       <emergency>
21714         <nationalNumberPattern>11[023]</nationalNumberPattern>
21715         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21716         <exampleNumber>112</exampleNumber>
21717       </emergency>
21718     </territory>
21719
21720     <!-- Swaziland -->
21721     <!-- http://www.itu.int/oth/T02020000C6/en -->
21722     <territory id="SZ" countryCode="268" internationalPrefix="00" leadingZeroPossible="true">
21723       <availableFormats>
21724         <numberFormat pattern="(\d{4})(\d{4})">
21725           <leadingDigits>[027]</leadingDigits>
21726           <format>$1 $2</format>
21727         </numberFormat>
21728       </availableFormats>
21729       <generalDesc>
21730         <nationalNumberPattern>[027]\d{7}</nationalNumberPattern>
21731         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21732       </generalDesc>
21733       <noInternationalDialling>
21734         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21735         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21736         <exampleNumber>08001234</exampleNumber>
21737       </noInternationalDialling>
21738       <fixedLine>
21739         <nationalNumberPattern>
21740           2(?:
21741             2(?:
21742               0[07]|
21743               [13]7|
21744               2[57]
21745             )|
21746             3(?:
21747               0[34]|
21748               [1278]3|
21749               3[23]|
21750               [46][34]
21751             )|
21752             (?:
21753               40[4-69]|
21754               67
21755             )|
21756             5(?:
21757               0[5-7]|
21758               1[6-9]|
21759               [23][78]|
21760               48|
21761               5[01]
21762             )
21763           )\d{4}
21764         </nationalNumberPattern>
21765         <exampleNumber>22171234</exampleNumber>
21766       </fixedLine>
21767       <mobile>
21768         <nationalNumberPattern>7[6-8]\d{6}</nationalNumberPattern>
21769         <exampleNumber>76123456</exampleNumber>
21770       </mobile>
21771       <tollFree>
21772         <nationalNumberPattern>0800\d{4}</nationalNumberPattern>
21773         <exampleNumber>08001234</exampleNumber>
21774       </tollFree>
21775       <emergency>
21776         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1031.html -->
21777         <!-- http://swaziland.usembassy.gov/information_for_travelers.html -->
21778         <nationalNumberPattern>999</nationalNumberPattern>
21779         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21780         <exampleNumber>999</exampleNumber>
21781       </emergency>
21782     </territory>
21783
21784     <!-- Tristan da Cunha -->
21785     <!-- http://www.itu.int/oth/T02020000AF/en -->
21786     <territory id="TA" countryCode="290" internationalPrefix="00">
21787       <!-- Numbers are formatted as a block. Shares a country code with Saint Helena. -->
21788       <generalDesc>
21789         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21790         <possibleNumberPattern>\d{4}</possibleNumberPattern>
21791       </generalDesc>
21792       <fixedLine>
21793         <nationalNumberPattern>8\d{3}</nationalNumberPattern>
21794         <exampleNumber>8999</exampleNumber>
21795       </fixedLine>
21796       <mobile>
21797         <nationalNumberPattern>NA</nationalNumberPattern>
21798         <possibleNumberPattern>NA</possibleNumberPattern>
21799       </mobile>
21800     </territory>
21801
21802     <!-- Turks and Caicos Islands -->
21803     <!-- http://www.itu.int/oth/T02020000D8/en -->
21804     <territory id="TC" countryCode="1" leadingDigits="649" nationalPrefix="1"
21805                internationalPrefix="011">
21806       <generalDesc>
21807         <!-- NANPA country - uses US formatting rules -->
21808         <nationalNumberPattern>[5689]\d{9}</nationalNumberPattern>
21809         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
21810       </generalDesc>
21811       <fixedLine>
21812         <nationalNumberPattern>
21813           649(?:
21814             712|
21815             9(?:
21816               4\d|
21817               50
21818             )
21819           )\d{4}
21820         </nationalNumberPattern>
21821         <exampleNumber>6497121234</exampleNumber>
21822       </fixedLine>
21823       <mobile>
21824         <!-- Extra prefixes 246, 247, 346 found online and in the yellow pages. -->
21825         <nationalNumberPattern>
21826           649(?:
21827             2(?:
21828               3[129]|
21829               4[1-7]
21830             )|
21831             3(?:
21832               3[1-389]|
21833               4[1-7]
21834             )|
21835             4[34][12]
21836           )\d{4}
21837         </nationalNumberPattern>
21838         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21839         <exampleNumber>6492311234</exampleNumber>
21840       </mobile>
21841       <tollFree>
21842         <nationalNumberPattern>
21843           8(?:
21844             00|
21845             55|
21846             66|
21847             77|
21848             88
21849           )[2-9]\d{6}
21850         </nationalNumberPattern>
21851         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21852         <exampleNumber>8002345678</exampleNumber>
21853       </tollFree>
21854       <premiumRate>
21855         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
21856         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21857         <exampleNumber>9002345678</exampleNumber>
21858       </premiumRate>
21859       <personalNumber>
21860         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
21861         <nationalNumberPattern>
21862           5(?:
21863             00|
21864             33|
21865             44
21866           )[2-9]\d{6}
21867         </nationalNumberPattern>
21868         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21869         <exampleNumber>5002345678</exampleNumber>
21870       </personalNumber>
21871       <voip>
21872         <nationalNumberPattern>64971[01]\d{4}</nationalNumberPattern>
21873         <possibleNumberPattern>\d{10}</possibleNumberPattern>
21874         <exampleNumber>6497101234</exampleNumber>
21875       </voip>
21876       <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
21877       <!-- http://s2.turksandcaicosyp.com/Turks-Caicos/Government/2/book -->
21878       <emergency>
21879         <nationalNumberPattern>
21880           9(?:
21881             11|
21882             99
21883           )
21884         </nationalNumberPattern>
21885         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21886         <exampleNumber>911</exampleNumber>
21887       </emergency>
21888     </territory>
21889
21890     <!-- Chad -->
21891     <!-- http://www.itu.int/oth/T0202000029/en -->
21892     <!-- The international prefix includes 16 as the international manual exchange. -->
21893     <territory id="TD" countryCode="235" preferredInternationalPrefix="00"
21894                internationalPrefix="00|16">
21895       <availableFormats>
21896         <numberFormat
21897           pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21898           <format>$1 $2 $3 $4</format>
21899         </numberFormat>
21900       </availableFormats>
21901       <generalDesc>
21902         <nationalNumberPattern>[2679]\d{7}</nationalNumberPattern>
21903         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21904       </generalDesc>
21905       <fixedLine>
21906         <nationalNumberPattern>
21907           22(?:
21908             [3789]0|
21909             5[0-5]|
21910             6[89]
21911           )\d{4}
21912         </nationalNumberPattern>
21913         <exampleNumber>22501234</exampleNumber>
21914       </fixedLine>
21915       <mobile>
21916         <!-- Sotel Tchad "SALAM" (77 XX XX XX) is classified as a fixed operator in the plan, but it
21917              also says numbers starting with 7 are mobile numbers. Putting under mobile for now.
21918              Also adding 6[028] and 63[5-9] which are operated by Airtel. -->
21919         <nationalNumberPattern>
21920           (?:
21921             6[02368]\d|
21922             77\d|
21923             9(?:
21924               5[0-4]|
21925               9\d
21926             )
21927           )\d{5}
21928         </nationalNumberPattern>
21929         <exampleNumber>63012345</exampleNumber>
21930       </mobile>
21931       <emergency>
21932         <nationalNumberPattern>1[78]</nationalNumberPattern>
21933         <possibleNumberPattern>\d{2}</possibleNumberPattern>
21934         <exampleNumber>17</exampleNumber>
21935       </emergency>
21936     </territory>
21937
21938     <!-- French Southern Territories -->
21939     <!-- id="TF" countryCode="262" internationalPrefix="00" nationalPrefix="0" -->
21940     <!-- This country is not covered due to lack of information about its numbering plan. It has 140
21941          temporary inhabitants. -->
21942
21943     <!-- Togo -->
21944     <!-- http://www.itu.int/oth/T02020000D1/en -->
21945     <territory id="TG" countryCode="228" internationalPrefix="00">
21946       <availableFormats>
21947         <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
21948           <format>$1 $2 $3 $4</format>
21949         </numberFormat>
21950       </availableFormats>
21951       <generalDesc>
21952         <nationalNumberPattern>[29]\d{7}</nationalNumberPattern>
21953         <possibleNumberPattern>\d{8}</possibleNumberPattern>
21954       </generalDesc>
21955       <fixedLine>
21956         <nationalNumberPattern>
21957           2(?:
21958             2[2-7]|
21959             3[23]|
21960             44|
21961             55|
21962             66|
21963             77
21964           )\d{5}
21965         </nationalNumberPattern>
21966         <exampleNumber>22212345</exampleNumber>
21967       </fixedLine>
21968       <mobile>
21969         <nationalNumberPattern>9[0-289]\d{6}</nationalNumberPattern>
21970         <exampleNumber>90112345</exampleNumber>
21971       </mobile>
21972       <emergency>
21973         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1041.html -->
21974         <!-- http://www.netglobers.com/africa/togo-emergency-numbers-in-togo.html -->
21975         <!-- http://www.mapsofworld.com/togo/information/emergency-numbers.html -->
21976         <nationalNumberPattern>
21977           1(?:
21978             01|
21979             1[78]|
21980             7[17]
21981           )
21982         </nationalNumberPattern>
21983         <possibleNumberPattern>\d{3}</possibleNumberPattern>
21984         <exampleNumber>117</exampleNumber>
21985       </emergency>
21986     </territory>
21987
21988     <!-- Thailand -->
21989     <!-- http://www.itu.int/oth/T02020000CD/en -->
21990     <!-- http://www.barascientific.com/bscnews/variety/emergency/Tel-4Digi.pdf -->
21991     <territory id="TH" countryCode="66" internationalPrefix="00"
21992                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
21993       <availableFormats>
21994         <!-- Formatting patterns from wikipedia and the document itself -
21995              http://en.wikipedia.org/wiki/%2B66 -->
21996         <numberFormat pattern="(2)(\d{3})(\d{4})">
21997           <leadingDigits>2</leadingDigits>
21998           <format>$1 $2 $3</format>
21999         </numberFormat>
22000         <numberFormat pattern="([3-9]\d)(\d{3})(\d{3,4})">
22001           <leadingDigits>[3-9]</leadingDigits>
22002           <format>$1 $2 $3</format>
22003         </numberFormat>
22004         <numberFormat nationalPrefixFormattingRule="$FG"
22005           pattern="(1[89]00)(\d{3})(\d{3})">
22006           <leadingDigits>1</leadingDigits>
22007           <format>$1 $2 $3</format>
22008         </numberFormat>
22009       </availableFormats>
22010       <generalDesc>
22011         <nationalNumberPattern>
22012           [2-9]\d{7,8}|
22013           1\d{3}(?:\d{6})?
22014         </nationalNumberPattern>
22015         <possibleNumberPattern>\d{4}|\d{8,10}</possibleNumberPattern>
22016       </generalDesc>
22017       <noInternationalDialling>
22018         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
22019         <possibleNumberPattern>\d{4}</possibleNumberPattern>
22020         <exampleNumber>1100</exampleNumber>
22021       </noInternationalDialling>
22022       <fixedLine>
22023         <nationalNumberPattern>
22024           (?:
22025             2[1-9]|
22026             3[2-9]|
22027             4[2-5]|
22028             5[2-6]|
22029             7[3-7]
22030           )\d{6}
22031         </nationalNumberPattern>
22032         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22033         <exampleNumber>21234567</exampleNumber>
22034       </fixedLine>
22035       <mobile>
22036         <nationalNumberPattern>[89]\d{8}</nationalNumberPattern>
22037         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22038         <exampleNumber>812345678</exampleNumber>
22039       </mobile>
22040       <!-- http://en.wikipedia.org/wiki/Toll-free_telephone_number -->
22041       <tollFree>
22042         <nationalNumberPattern>1800\d{6}</nationalNumberPattern>
22043         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22044         <exampleNumber>1800123456</exampleNumber>
22045       </tollFree>
22046       <premiumRate>
22047         <nationalNumberPattern>1900\d{6}</nationalNumberPattern>
22048         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22049         <exampleNumber>1900123456</exampleNumber>
22050       </premiumRate>
22051       <voip>
22052         <!-- The ITU document says that the 89 prefix is also VOIP but there are lots of numbers
22053              online to suggest they are actually used as mobile numbers -->
22054         <nationalNumberPattern>60\d{7}</nationalNumberPattern>
22055         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22056         <exampleNumber>601234567</exampleNumber>
22057       </voip>
22058       <uan>
22059         <!-- 4-digit numbers are classified under UAN. Most of these are commercial numbers, and
22060              their costs range from free to 6 Baht/min. -->
22061         <nationalNumberPattern>1\d{3}</nationalNumberPattern>
22062         <possibleNumberPattern>\d{4}</possibleNumberPattern>
22063         <exampleNumber>1100</exampleNumber>
22064       </uan>
22065       <emergency>
22066         <nationalNumberPattern>
22067           1(?:
22068             669|
22069             9[19]
22070           )
22071         </nationalNumberPattern>
22072         <possibleNumberPattern>\d{3,4}</possibleNumberPattern>
22073         <exampleNumber>191</exampleNumber>
22074       </emergency>
22075     </territory>
22076
22077     <!-- Tajikistan -->
22078     <!-- http://www.itu.int/oth/T02020000CA/en -->
22079     <territory id="TJ" countryCode="992" preferredInternationalPrefix="8~10"
22080                internationalPrefix="810" nationalPrefix="8"
22081                nationalPrefixFormattingRule="($NP) $FG"
22082                nationalPrefixOptionalWhenFormatting="true">
22083       <availableFormats>
22084         <numberFormat pattern="([349]\d{2})(\d{2})(\d{4})">
22085           <leadingDigits>
22086             [34]7|
22087             91[78]
22088           </leadingDigits>
22089           <format>$1 $2 $3</format>
22090         </numberFormat>
22091         <numberFormat pattern="([459]\d)(\d{3})(\d{4})">
22092           <leadingDigits>
22093             4[48]|
22094             5|
22095             9(?:
22096               1[59]|
22097               [0235-9]
22098             )
22099           </leadingDigits>
22100           <format>$1 $2 $3</format>
22101         </numberFormat>
22102         <numberFormat pattern="(331700)(\d)(\d{2})">
22103           <leadingDigits>331</leadingDigits>
22104           <leadingDigits>3317</leadingDigits>
22105           <leadingDigits>33170</leadingDigits>
22106           <leadingDigits>331700</leadingDigits>
22107           <format>$1 $2 $3</format>
22108         </numberFormat>
22109         <numberFormat pattern="(\d{4})(\d)(\d{4})">
22110           <leadingDigits>3[1-5]</leadingDigits>
22111           <leadingDigits>
22112             3(?:
22113               [1245]|
22114               3(?:
22115                 [02-9]|
22116                 1[0-589]
22117               )
22118             )
22119           </leadingDigits>
22120           <format>$1 $2 $3</format>
22121         </numberFormat>
22122       </availableFormats>
22123       <generalDesc>
22124         <nationalNumberPattern>[3-59]\d{8}</nationalNumberPattern>
22125         <possibleNumberPattern>\d{3,9}</possibleNumberPattern>
22126       </generalDesc>
22127       <fixedLine>
22128         <nationalNumberPattern>
22129           (?:
22130             3(?:
22131               1[3-5]|
22132               2[245]|
22133               3[12]|
22134               4[24-7]|
22135               5[25]|
22136               72
22137             )|
22138             4(?:
22139               46|
22140               74|
22141               87
22142             )
22143           )\d{6}
22144         </nationalNumberPattern>
22145         <exampleNumber>372123456</exampleNumber>
22146       </fixedLine>
22147       <mobile>
22148         <!-- Adding 90 prefix as SMS messages could be successfully delivered to these mobile
22149              numbers, and 501 for TCell. -->
22150         <nationalNumberPattern>
22151           (?:
22152             50[15]|
22153             9[0-35-9]\d
22154           )\d{6}
22155         </nationalNumberPattern>
22156         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22157         <exampleNumber>917123456</exampleNumber>
22158       </mobile>
22159       <!-- No tollFree or premiumRate information can be found. -->
22160       <emergency>
22161         <nationalNumberPattern>
22162           1(?:
22163             0[1-3]|
22164             12
22165           )
22166         </nationalNumberPattern>
22167         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22168         <exampleNumber>112</exampleNumber>
22169       </emergency>
22170     </territory>
22171
22172     <!-- Tokelau -->
22173     <!-- http://www.itu.int/oth/T02020000D2/en -->
22174     <territory id="TK" countryCode="690" internationalPrefix="00">
22175       <generalDesc>
22176         <nationalNumberPattern>[2-9]\d{3}</nationalNumberPattern>
22177         <possibleNumberPattern>\d{4}</possibleNumberPattern>
22178       </generalDesc>
22179       <fixedLine>
22180         <nationalNumberPattern>[2-4]\d{3}</nationalNumberPattern>
22181         <!-- The example number is the contact number from the ITU document. -->
22182         <exampleNumber>3010</exampleNumber>
22183       </fixedLine>
22184       <mobile>
22185         <nationalNumberPattern>[5-9]\d{3}</nationalNumberPattern>
22186         <exampleNumber>5190</exampleNumber>
22187       </mobile>
22188       <!-- No evidence that any emergency numbers exist for this tiny island has been found. -->
22189     </territory>
22190
22191     <!-- Timor-Leste (East Timor) -->
22192     <!-- http://www.itu.int/oth/T02020000D0/en -->
22193     <territory id="TL" countryCode="670" internationalPrefix="00">
22194       <availableFormats>
22195         <numberFormat pattern="(\d{3})(\d{4})">
22196           <leadingDigits>[2-489]</leadingDigits>
22197           <format>$1 $2</format>
22198         </numberFormat>
22199         <!-- Since numbers grew an extra digit, we have no indication of how people are formatting
22200              them. If we see another pattern being used, we should change this later. -->
22201         <numberFormat pattern="(\d{4})(\d{4})">
22202           <leadingDigits>7</leadingDigits>
22203           <format>$1 $2</format>
22204         </numberFormat>
22205       </availableFormats>
22206       <generalDesc>
22207         <nationalNumberPattern>
22208           [2-489]\d{6}|
22209           7\d{6,7}
22210         </nationalNumberPattern>
22211         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
22212       </generalDesc>
22213       <fixedLine>
22214         <nationalNumberPattern>
22215           (?:
22216             2[1-5]|
22217             3[1-9]|
22218             4[1-4]
22219           )\d{5}
22220         </nationalNumberPattern>
22221         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22222         <exampleNumber>2112345</exampleNumber>
22223       </fixedLine>
22224       <mobile>
22225         <nationalNumberPattern>7[3-8]\d{6}</nationalNumberPattern>
22226         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22227         <exampleNumber>77212345</exampleNumber>
22228       </mobile>
22229       <tollFree>
22230         <nationalNumberPattern>80\d{5}</nationalNumberPattern>
22231         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22232         <exampleNumber>8012345</exampleNumber>
22233       </tollFree>
22234       <premiumRate>
22235         <nationalNumberPattern>90\d{5}</nationalNumberPattern>
22236         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22237         <exampleNumber>9012345</exampleNumber>
22238       </premiumRate>
22239       <!-- We don't include paging or voicemail because the identified paging range was used by
22240            mobile previously, and for voicemail, it is unclear if the 2012 change affected these
22241            numbers, or if the range was indeed previously used for voicemail at all. -->
22242       <personalNumber>
22243         <!-- We presume this wasn't affected by the numbering plan update. -->
22244         <nationalNumberPattern>70\d{5}</nationalNumberPattern>
22245         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22246         <exampleNumber>7012345</exampleNumber>
22247       </personalNumber>
22248       <emergency>
22249         <nationalNumberPattern>11[25]</nationalNumberPattern>
22250         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22251         <exampleNumber>112</exampleNumber>
22252       </emergency>
22253     </territory>
22254
22255     <!-- Turkmenistan -->
22256     <!-- http://www.itu.int/oth/T02020000D7/en -->
22257     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Turkmenistan -->
22258     <territory id="TM" countryCode="993" preferredInternationalPrefix="8~10"
22259                internationalPrefix="810" nationalPrefix="8"
22260                nationalPrefixFormattingRule="($NP $FG)">
22261       <availableFormats>
22262         <!-- There doesn't seem to be a standardized format. The format below is based on the
22263              Turkmenistan embassy at
22264              http://www.turkmenistanembassy.org/turkmen/info/contact.html -->
22265           <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
22266             <leadingDigits>12</leadingDigits>
22267             <format>$1 $2-$3-$4</format>
22268           </numberFormat>
22269           <numberFormat pattern="(\d{2})(\d{6})" nationalPrefixFormattingRule="$NP $FG">
22270             <leadingDigits>6</leadingDigits>
22271             <format>$1 $2</format>
22272           </numberFormat>
22273           <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})">
22274             <leadingDigits>
22275               13|
22276               [2-5]
22277             </leadingDigits>
22278             <format>$1 $2-$3-$4</format>
22279           </numberFormat>
22280       </availableFormats>
22281       <generalDesc>
22282         <nationalNumberPattern>[1-6]\d{7}</nationalNumberPattern>
22283         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22284       </generalDesc>
22285       <fixedLine>
22286         <!-- Additional prefixes from the wikipedia page. -->
22287         <nationalNumberPattern>
22288           (?:
22289             1(?:
22290               2\d|
22291               3[1-9]
22292             )|
22293             2(?:
22294               22|
22295               4[0-35-8]
22296             )|
22297             3(?:
22298               22|
22299               4[03-9]
22300             )|
22301             4(?:
22302               22|
22303               3[128]|
22304               4\d|
22305               6[15]
22306             )|
22307             5(?:
22308               22|
22309               5[7-9]|
22310               6[014-689]
22311             )
22312           )\d{5}
22313         </nationalNumberPattern>
22314         <exampleNumber>12345678</exampleNumber>
22315       </fixedLine>
22316       <mobile>
22317         <!-- According to feedback from users, the carrier Altyn Asyr is the only one currently
22318              operating, with the numbers 6[3-5]\d{6}. MTS used to operate the ranges 6[6-8] but this
22319              has been suspended. It is unclear whether it will resume. We support both ranges in the
22320              meantime. -->
22321         <nationalNumberPattern>6[3-8]\d{6}</nationalNumberPattern>
22322         <exampleNumber>66123456</exampleNumber>
22323       </mobile>
22324       <!-- No tollFree or premiumRate information can be found. -->
22325       <emergency>
22326         <!-- http://www.netglobers.com/asia/turkmenistan-emergency-numbers-in-turkmenistan.html
22327              http://www.voyage.gc.ca/countries_pays/report_rapport-eng.asp?id=301000 -->
22328         <nationalNumberPattern>0[1-3]</nationalNumberPattern>
22329         <possibleNumberPattern>\d{2}</possibleNumberPattern>
22330         <exampleNumber>03</exampleNumber>
22331       </emergency>
22332     </territory>
22333
22334     <!-- Tunisia -->
22335     <!-- http://www.itu.int/oth/T02020000D5/en -->
22336     <territory id="TN" countryCode="216" internationalPrefix="00">
22337       <availableFormats>
22338         <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
22339           <format>$1 $2 $3</format>
22340         </numberFormat>
22341       </availableFormats>
22342       <generalDesc>
22343         <nationalNumberPattern>[2-57-9]\d{7}</nationalNumberPattern>
22344         <possibleNumberPattern>\d{8}</possibleNumberPattern>
22345       </generalDesc>
22346       <fixedLine>
22347         <!-- We support the whole 81 prefix here instead of just 81200 as
22348              indicated in the ITU doc, as more real phone numbers have been
22349              found online. -->
22350         <nationalNumberPattern>
22351           (?:
22352             3[012]|
22353             7\d|
22354             81
22355           )\d{6}
22356         </nationalNumberPattern>
22357         <exampleNumber>71234567</exampleNumber>
22358       </fixedLine>
22359       <mobile>
22360         <nationalNumberPattern>
22361           (?:
22362             [259]\d|
22363             4[0-2]
22364           )\d{6}
22365         </nationalNumberPattern>
22366         <exampleNumber>20123456</exampleNumber>
22367       </mobile>
22368       <!-- These are listed as 'value added services' - pending further information, we add them
22369            here for now. -->
22370       <premiumRate>
22371         <nationalNumberPattern>8[028]\d{6}</nationalNumberPattern>
22372         <exampleNumber>80123456</exampleNumber>
22373       </premiumRate>
22374       <emergency>
22375         <nationalNumberPattern>19[078]</nationalNumberPattern>
22376         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22377         <exampleNumber>197</exampleNumber>
22378       </emergency>
22379     </territory>
22380
22381     <!-- Tonga -->
22382     <!-- http://www.itu.int/oth/T02020000D3/en -->
22383     <!-- http://www.wtng.info/wtng-676-to.html -->
22384     <territory id="TO" countryCode="676" internationalPrefix="00" leadingZeroPossible="true">
22385       <availableFormats>
22386         <numberFormat pattern="(\d{2})(\d{3})">
22387           <leadingDigits>
22388             [1-6]|
22389             7[0-4]|
22390             8[05]
22391           </leadingDigits>
22392           <format>$1-$2</format>
22393         </numberFormat>
22394         <numberFormat pattern="(\d{3})(\d{4})">
22395           <leadingDigits>
22396             7[5-9]|
22397             8[7-9]
22398           </leadingDigits>
22399           <format>$1 $2</format>
22400         </numberFormat>
22401         <numberFormat pattern="(\d{4})(\d{3})">
22402           <leadingDigits>0</leadingDigits>
22403           <format>$1 $2</format>
22404         </numberFormat>
22405       </availableFormats>
22406       <generalDesc>
22407         <nationalNumberPattern>[02-8]\d{4,6}</nationalNumberPattern>
22408         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
22409       </generalDesc>
22410       <fixedLine>
22411         <nationalNumberPattern>
22412           (?:
22413             2\d|
22414             3[1-8]|
22415             4[1-4]|
22416             [56]0|
22417             7[0149]|
22418             8[05]
22419           )\d{3}
22420         </nationalNumberPattern>
22421         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22422         <exampleNumber>20123</exampleNumber>
22423       </fixedLine>
22424       <mobile>
22425         <!-- TCC mobile numbers were given a prefix of "77" in 2009, although this is not mentioned
22426              in their ITU document. Numbers with a prefix of "75" have also been found. -->
22427         <nationalNumberPattern>
22428           (?:
22429             7[578]|
22430             8[7-9]
22431           )\d{5}
22432         </nationalNumberPattern>
22433         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22434         <exampleNumber>7715123</exampleNumber>
22435       </mobile>
22436       <tollFree>
22437         <nationalNumberPattern>0800\d{3}</nationalNumberPattern>
22438         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22439         <exampleNumber>0800222</exampleNumber>
22440       </tollFree>
22441       <emergency>
22442         <!-- http://www.tongaholiday.com/?page_id=2034 -->
22443         <nationalNumberPattern>
22444           9(?:
22445             11|
22446             22|
22447             33|
22448             99
22449           )
22450         </nationalNumberPattern>
22451         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22452         <exampleNumber>911</exampleNumber>
22453       </emergency>
22454     </territory>
22455
22456     <!-- Turkey -->
22457     <!-- http://en.wikipedia.org/wiki/%2B90 -->
22458     <!-- http://www.itu.int/oth/T02020000D6/en -->
22459     <territory id="TR" countryCode="90" internationalPrefix="00" nationalPrefix="0">
22460       <availableFormats>
22461         <numberFormat nationalPrefixFormattingRule="($NP$FG)" pattern="(\d{3})(\d{3})(\d{4})"
22462           nationalPrefixOptionalWhenFormatting="true">
22463           <leadingDigits>
22464             [23]|
22465             4(?:
22466               [0-35-9]|
22467               4[0-35-9]
22468             )
22469           </leadingDigits>
22470           <format>$1 $2 $3</format>
22471         </numberFormat>
22472         <numberFormat nationalPrefixFormattingRule="$NP$FG" pattern="(\d{3})(\d{3})(\d{4})"
22473           nationalPrefixOptionalWhenFormatting="true">
22474           <leadingDigits>[589]</leadingDigits>
22475           <format>$1 $2 $3</format>
22476         </numberFormat>
22477         <numberFormat pattern="(444)(\d{1})(\d{3})">
22478           <leadingDigits>444</leadingDigits>
22479           <format>$1 $2 $3</format>
22480         </numberFormat>
22481       </availableFormats>
22482       <generalDesc>
22483         <nationalNumberPattern>
22484           [2-589]\d{9}|
22485           444\d{4}
22486         </nationalNumberPattern>
22487         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
22488       </generalDesc>
22489       <noInternationalDialling>
22490         <nationalNumberPattern>444\d{4}</nationalNumberPattern>
22491         <possibleNumberPattern>\d{7}</possibleNumberPattern>
22492         <exampleNumber>4441444</exampleNumber>
22493       </noInternationalDialling>
22494       <fixedLine>
22495         <!-- Includes numbers starting with 392 for Northern Cyprus. -->
22496         <nationalNumberPattern>
22497           (?:
22498             2(?:
22499               [13][26]|
22500               [28][2468]|
22501               [45][268]|
22502               [67][246]
22503             )|
22504             3(?:
22505               [13][28]|
22506               [24-6][2468]|
22507               [78][02468]|
22508               92
22509             )|
22510             4(?:
22511               [16][246]|
22512               [23578][2468]|
22513               4[26]
22514             )
22515           )\d{7}
22516         </nationalNumberPattern>
22517         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22518         <exampleNumber>2123456789</exampleNumber>
22519       </fixedLine>
22520       <mobile>
22521         <!-- There are some differences between the Turkish and English wikipedia pages here, and
22522              some number prefixes do not seem to be able to be found online. Omitting 500, 508 and
22523              509 from the English page because of this. -->
22524         <nationalNumberPattern>
22525           5(?:
22526             0[1-7]|
22527             22|
22528             [34]\d|
22529             5[1-59]|
22530             9[246]
22531           )\d{7}
22532         </nationalNumberPattern>
22533         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22534         <exampleNumber>5012345678</exampleNumber>
22535       </mobile>
22536       <pager>
22537         <nationalNumberPattern>512\d{7}</nationalNumberPattern>
22538         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22539         <exampleNumber>5123456789</exampleNumber>
22540       </pager>
22541       <tollFree>
22542         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
22543         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22544         <exampleNumber>8001234567</exampleNumber>
22545       </tollFree>
22546       <premiumRate>
22547         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
22548         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22549         <exampleNumber>9001234567</exampleNumber>
22550       </premiumRate>
22551       <uan>
22552         <!-- http://www.turktelekom.com.tr/tt/portal/News/Archive/7-digit-special-service-number-starting-with-444 -->
22553         <nationalNumberPattern>
22554           444\d{4}|
22555           850\d{7}
22556         </nationalNumberPattern>
22557         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
22558         <exampleNumber>4441444</exampleNumber>
22559       </uan>
22560       <emergency>
22561         <nationalNumberPattern>
22562           1(?:
22563             1[02]|
22564             55
22565           )
22566         </nationalNumberPattern>
22567         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22568         <exampleNumber>112</exampleNumber>
22569       </emergency>
22570     </territory>
22571
22572     <!-- Trinidad and Tobago -->
22573     <!-- http://www.itu.int/oth/T02020000D4/en -->
22574     <territory id="TT" countryCode="1" leadingDigits="868" nationalPrefix="1"
22575                internationalPrefix="011">
22576       <generalDesc>
22577         <!-- NANPA country - uses US formatting rules -->
22578         <nationalNumberPattern>[589]\d{9}</nationalNumberPattern>
22579         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
22580       </generalDesc>
22581       <fixedLine>
22582         <nationalNumberPattern>
22583           868(?:
22584             2(?:
22585               01|
22586               2[1-5]
22587             )|
22588             6(?:
22589               07|
22590               1[4-6]|
22591               2[1-9]|
22592               [3-6]\d|
22593               7[0-79]|
22594               9[0-8]
22595             )|
22596             82[12]
22597           )\d{4}
22598         </nationalNumberPattern>
22599         <exampleNumber>8682211234</exampleNumber>
22600       </fixedLine>
22601       <mobile>
22602         <!-- Adding 48X & 70X from the IR21 published by TSTT. -->
22603         <nationalNumberPattern>
22604           868(?:
22605             2(?:
22606               8[59]|
22607               9\d
22608             )|
22609             3(?:
22610               0[1-9]|
22611               1[02-9]|
22612               [2-9]\d
22613             )|
22614             4[6-9]\d|
22615             6(?:
22616               20|
22617               78|
22618               8\d
22619             )|
22620             7(?:
22621               1[02-9]|
22622               [02-9]\d
22623             )
22624           )\d{4}
22625         </nationalNumberPattern>
22626         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22627         <exampleNumber>8682911234</exampleNumber>
22628       </mobile>
22629       <tollFree>
22630         <nationalNumberPattern>
22631           8(?:
22632             00|
22633             55|
22634             66|
22635             77|
22636             88
22637           )[2-9]\d{6}
22638         </nationalNumberPattern>
22639         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22640         <exampleNumber>8002345678</exampleNumber>
22641       </tollFree>
22642       <premiumRate>
22643         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
22644         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22645         <exampleNumber>9002345678</exampleNumber>
22646       </premiumRate>
22647       <personalNumber>
22648         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
22649         <nationalNumberPattern>
22650           5(?:
22651             00|
22652             33|
22653             44
22654           )[2-9]\d{6}
22655         </nationalNumberPattern>
22656         <possibleNumberPattern>\d{10}</possibleNumberPattern>
22657         <exampleNumber>5002345678</exampleNumber>
22658       </personalNumber>
22659       <emergency>
22660         <nationalNumberPattern>99[09]</nationalNumberPattern>
22661         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22662         <exampleNumber>999</exampleNumber>
22663       </emergency>
22664     </territory>
22665
22666     <!-- Tuvalu -->
22667     <!-- http://www.itu.int/oth/T02020000D9/en -->
22668     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Tuvalu -->
22669     <territory id="TV" countryCode="688" internationalPrefix="00">
22670       <!-- Numbers are formatted as a block. -->
22671       <generalDesc>
22672         <nationalNumberPattern>[29]\d{4,5}</nationalNumberPattern>
22673         <possibleNumberPattern>\d{5,6}</possibleNumberPattern>
22674       </generalDesc>
22675       <fixedLine>
22676         <nationalNumberPattern>2[02-9]\d{3}</nationalNumberPattern>
22677         <possibleNumberPattern>\d{5}</possibleNumberPattern>
22678         <exampleNumber>20123</exampleNumber>
22679       </fixedLine>
22680       <mobile>
22681         <!-- Some numbers online can be found that are 5-digits long, and start with 90 or 91. We
22682              don't know if these are valid or not - the ITU document excludes them - so are not
22683              covering these for now. -->
22684         <nationalNumberPattern>90\d{4}</nationalNumberPattern>
22685         <possibleNumberPattern>\d{6}</possibleNumberPattern>
22686         <exampleNumber>901234</exampleNumber>
22687       </mobile>
22688       <emergency>
22689         <nationalNumberPattern>911</nationalNumberPattern>
22690         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22691         <exampleNumber>911</exampleNumber>
22692       </emergency>
22693     </territory>
22694
22695     <!-- Taiwan, China -->
22696     <!-- http://www.itu.int/oth/T02020000EB/en -->
22697     <!-- Extension symbols found on the internet so far have been #, X and Ext - so # has been
22698          chosen as the preferred extension prefix. -->
22699     <territory id="TW" countryCode="886" internationalPrefix="0(?:0[25679]|19)"
22700                nationalPrefix="0" preferredExtnPrefix="#" nationalPrefixFormattingRule="$NP$FG">
22701       <availableFormats>
22702         <numberFormat pattern="([2-8])(\d{3,4})(\d{4})">
22703           <leadingDigits>
22704             [2-7]|
22705             8[1-9]
22706           </leadingDigits>
22707           <format>$1 $2 $3</format>
22708         </numberFormat>
22709         <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})">
22710           <leadingDigits>
22711             80|
22712             9
22713           </leadingDigits>
22714           <format>$1 $2 $3</format>
22715         </numberFormat>
22716       </availableFormats>
22717       <generalDesc>
22718         <nationalNumberPattern>[2-9]\d{7,8}</nationalNumberPattern>
22719         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22720       </generalDesc>
22721       <fixedLine>
22722         <nationalNumberPattern>[2-8]\d{7,8}</nationalNumberPattern>
22723         <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
22724         <exampleNumber>21234567</exampleNumber>
22725       </fixedLine>
22726       <mobile>
22727         <nationalNumberPattern>9\d{8}</nationalNumberPattern>
22728         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22729         <exampleNumber>912345678</exampleNumber>
22730       </mobile>
22731       <tollFree>
22732         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22733         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22734         <exampleNumber>800123456</exampleNumber>
22735       </tollFree>
22736       <premiumRate>
22737         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
22738         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22739         <exampleNumber>900123456</exampleNumber>
22740       </premiumRate>
22741       <emergency>
22742         <nationalNumberPattern>11[029]</nationalNumberPattern>
22743         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22744         <exampleNumber>110</exampleNumber>
22745       </emergency>
22746     </territory>
22747
22748     <!-- Tanzania -->
22749     <!-- http://www.itu.int/oth/T02020000CB/en -->
22750     <territory id="TZ" countryCode="255" internationalPrefix="00[056]"
22751                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22752       <availableFormats>
22753         <numberFormat pattern="([24]\d)(\d{3})(\d{4})">
22754           <leadingDigits>[24]</leadingDigits>
22755           <format>$1 $2 $3</format>
22756         </numberFormat>
22757         <numberFormat pattern="([67]\d{2})(\d{3})(\d{3})">
22758           <leadingDigits>[67]</leadingDigits>
22759           <format>$1 $2 $3</format>
22760         </numberFormat>
22761         <!-- Formatting for special numbers from www.tcra.go.tz -->
22762         <numberFormat pattern="([89]\d{2})(\d{2})(\d{4})">
22763           <leadingDigits>[89]</leadingDigits>
22764           <format>$1 $2 $3</format>
22765         </numberFormat>
22766       </availableFormats>
22767       <generalDesc>
22768         <nationalNumberPattern>\d{9}</nationalNumberPattern>
22769         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22770       </generalDesc>
22771       <fixedLine>
22772         <nationalNumberPattern>2[2-8]\d{7}</nationalNumberPattern>
22773         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
22774         <exampleNumber>222345678</exampleNumber>
22775       </fixedLine>
22776       <mobile>
22777         <nationalNumberPattern>
22778           (?:
22779             6[158]|
22780             7[1-9]
22781           )\d{7}
22782         </nationalNumberPattern>
22783         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22784         <exampleNumber>612345678</exampleNumber>
22785       </mobile>
22786       <tollFree>
22787         <nationalNumberPattern>80[08]\d{6}</nationalNumberPattern>
22788         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22789         <exampleNumber>800123456</exampleNumber>
22790       </tollFree>
22791       <premiumRate>
22792         <nationalNumberPattern>90\d{7}</nationalNumberPattern>
22793         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22794         <exampleNumber>900123456</exampleNumber>
22795       </premiumRate>
22796       <sharedCost>
22797         <nationalNumberPattern>
22798           8(?:
22799             40|
22800             6[01]
22801           )\d{6}
22802         </nationalNumberPattern>
22803         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22804         <exampleNumber>840123456</exampleNumber>
22805       </sharedCost>
22806       <voip>
22807         <nationalNumberPattern>41\d{7}</nationalNumberPattern>
22808         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22809         <exampleNumber>412345678</exampleNumber>
22810       </voip>
22811       <emergency>
22812         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1038.html
22813              http://in2eastafrica.net/emergency-numbers-in-tanzania -->
22814         <nationalNumberPattern>
22815           11[12]|
22816           999
22817         </nationalNumberPattern>
22818         <possibleNumberPattern>\d{3}</possibleNumberPattern>
22819         <exampleNumber>111</exampleNumber>
22820       </emergency>
22821     </territory>
22822
22823     <!-- Ukraine -->
22824     <!-- http://www.itu.int/oth/T02020000DB/en -->
22825     <!-- http://en.wikipedia.org/wiki/%2B380 -->
22826     <territory id="UA" countryCode="380" preferredInternationalPrefix="0~0"
22827                internationalPrefix="00"
22828                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
22829       <availableFormats>
22830         <!-- City codes separated out. No definitive list has been found of what constitutes the
22831              area code - http://www.ua.all-biz.info/guide/phonecodes is useful but not error-free.
22832              Have used local yellow pages guidelines, Google searches and regression tests to
22833              reverse-engineer these rules as well as bugs. -->
22834         <numberFormat pattern="([3-689]\d)(\d{3})(\d{4})">
22835           <leadingDigits>
22836             [38]9|
22837             4(?:
22838               [45][0-5]|
22839               87
22840             )|
22841             5(?:
22842               0|
22843               6[37]|
22844               7[37]
22845             )|
22846             6[36-8]|
22847             9[1-9]
22848           </leadingDigits>
22849           <leadingDigits>
22850             [38]9|
22851             4(?:
22852               [45][0-5]|
22853               87
22854             )|
22855             5(?:
22856               0|
22857               6(?:
22858                 3[14-7]|
22859                 7
22860               )|
22861               7[37]
22862             )|
22863             6[36-8]|
22864             9[1-9]
22865           </leadingDigits>
22866           <format>$1 $2 $3</format>
22867         </numberFormat>
22868         <numberFormat pattern="([3-689]\d{2})(\d{3})(\d{3})">
22869           <leadingDigits>
22870             3[1-8]2|
22871             4[13678]2|
22872             5(?:
22873               [12457]2|
22874               6[24]
22875             )|
22876             6(?:
22877               [49]2|
22878               [12][29]|
22879               5[24]
22880             )|
22881             8[0-8]|
22882             90
22883           </leadingDigits>
22884           <leadingDigits>
22885             3(?:
22886               [1-46-8]2[013-9]|
22887               52
22888             )|
22889             4(?:
22890               [1378]2|
22891               62[013-9]
22892             )|
22893             5(?:
22894               [12457]2|
22895               6[24]
22896             )|
22897             6(?:
22898               [49]2|
22899               [12][29]|
22900               5[24]
22901             )|
22902             8[0-8]|
22903             90
22904           </leadingDigits>
22905           <format>$1 $2 $3</format>
22906         </numberFormat>
22907         <numberFormat pattern="([3-6]\d{3})(\d{5})">
22908           <leadingDigits>
22909             3(?:
22910               5[013-9]|
22911               [1-46-8]
22912             )|
22913             4(?:
22914               [137][013-9]|
22915               6|
22916               [45][6-9]|
22917               8[4-6]
22918             )|
22919             5(?:
22920               [1245][013-9]|
22921               6[0135-9]|
22922               3|
22923               7[4-6]
22924             )|
22925             6(?:
22926               [49][013-9]|
22927               5[0135-9]|
22928               [12][13-8]
22929             )
22930           </leadingDigits>
22931           <leadingDigits>
22932             3(?:
22933               5[013-9]|
22934               [1-46-8](?:
22935                 22|
22936                 [013-9]
22937               )
22938             )|
22939             4(?:
22940               [137][013-9]|
22941               6(?:
22942                 [013-9]|
22943                 22
22944               )|
22945               [45][6-9]|
22946               8[4-6]
22947             )|
22948             5(?:
22949               [1245][013-9]|
22950               6(?:
22951                 3[02389]|
22952                 [015689]
22953               )|
22954               3|
22955               7[4-6]
22956             )|
22957             6(?:
22958               [49][013-9]|
22959               5[0135-9]|
22960               [12][13-8]
22961             )
22962           </leadingDigits>
22963           <format>$1 $2</format>
22964         </numberFormat>
22965       </availableFormats>
22966       <generalDesc>
22967         <nationalNumberPattern>[3-689]\d{8}</nationalNumberPattern>
22968         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
22969       </generalDesc>
22970       <fixedLine>
22971         <nationalNumberPattern>
22972           (?:
22973             3[1-8]|
22974             4[13-8]|
22975             5[1-7]|
22976             6[12459]
22977           )\d{7}
22978         </nationalNumberPattern>
22979         <exampleNumber>311234567</exampleNumber>
22980       </fixedLine>
22981       <mobile>
22982         <nationalNumberPattern>
22983           (?:
22984             39|
22985             50|
22986             6[36-8]|
22987             9[1-9]
22988           )\d{7}
22989         </nationalNumberPattern>
22990         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22991         <exampleNumber>391234567</exampleNumber>
22992       </mobile>
22993       <tollFree>
22994         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
22995         <possibleNumberPattern>\d{9}</possibleNumberPattern>
22996         <exampleNumber>800123456</exampleNumber>
22997       </tollFree>
22998       <premiumRate>
22999         <nationalNumberPattern>900\d{6}</nationalNumberPattern>
23000         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23001         <exampleNumber>900123456</exampleNumber>
23002       </premiumRate>
23003       <!-- Added based on: http://www.didx.net/did/ShowCountry/Country/AreaDesc/Area/9442 -->
23004       <voip>
23005         <nationalNumberPattern>89\d{7}</nationalNumberPattern>
23006         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23007         <exampleNumber>891234567</exampleNumber>
23008       </voip>
23009       <emergency>
23010         <nationalNumberPattern>
23011           1(?:
23012             0[123]|
23013             12
23014           )
23015         </nationalNumberPattern>
23016         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23017         <exampleNumber>112</exampleNumber>
23018       </emergency>
23019     </territory>
23020
23021     <!-- Uganda -->
23022     <!-- http://www.itu.int/oth/T02020000F1/en -->
23023     <!-- http://www.ucc.co.ug/licensing/ugandaNumberingPlan.pdf -->
23024     <territory id="UG" countryCode="256" internationalPrefix="00[057]"
23025                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
23026       <availableFormats>
23027         <numberFormat pattern="(\d{3})(\d{6})">
23028           <leadingDigits>
23029             [7-9]|
23030             20(?:
23031               [013-8]|
23032               2[5-9]
23033             )|
23034             4(?:
23035               6[45]|
23036               [7-9]
23037             )
23038           </leadingDigits>
23039           <format>$1 $2</format>
23040         </numberFormat>
23041         <numberFormat pattern="(\d{2})(\d{7})">
23042           <leadingDigits>
23043             3|
23044             4(?:
23045               [1-5]|
23046               6[0-36-9]
23047             )
23048           </leadingDigits>
23049           <format>$1 $2</format>
23050         </numberFormat>
23051         <numberFormat pattern="(2024)(\d{5})">
23052           <leadingDigits>2024</leadingDigits>
23053           <format>$1 $2</format>
23054         </numberFormat>
23055       </availableFormats>
23056       <generalDesc>
23057         <nationalNumberPattern>\d{9}</nationalNumberPattern>
23058         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
23059       </generalDesc>
23060       <fixedLine>
23061         <!-- Ranges with prefixes 20[5-8] are "not yet operational" as of Feb. 2013. -->
23062         <nationalNumberPattern>
23063           20(?:
23064             [0147]\d{2}|
23065             2(?:
23066               40|
23067               [5-9]\d
23068             )|
23069             3[23]\d|
23070             5[0-4]\d|
23071             60\d|
23072             8[0-2]\d
23073           )\d{4}|
23074           [34]\d{8}
23075         </nationalNumberPattern>
23076         <!-- The ITU plan calls for all numbers to be exactly 9 digits. However, it's not clear if
23077              local dialing is still possible. We assume it is for now. -->
23078         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
23079         <exampleNumber>312345678</exampleNumber>
23080       </fixedLine>
23081       <mobile>
23082         <!-- Added 79[5-9] and 707 from online numbers found with this prefix. -->
23083         <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. -->
23084         <nationalNumberPattern>
23085           7(?:
23086             0[0-7]|
23087             [15789]\d|
23088             [23]0|
23089             [46][0-4]
23090           )\d{6}
23091         </nationalNumberPattern>
23092         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23093         <exampleNumber>712345678</exampleNumber>
23094       </mobile>
23095       <tollFree>
23096         <nationalNumberPattern>800[123]\d{5}</nationalNumberPattern>
23097         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23098         <exampleNumber>800123456</exampleNumber>
23099       </tollFree>
23100       <premiumRate>
23101         <nationalNumberPattern>90[123]\d{6}</nationalNumberPattern>
23102         <possibleNumberPattern>\d{9}</possibleNumberPattern>
23103         <exampleNumber>901123456</exampleNumber>
23104       </premiumRate>
23105       <emergency>
23106         <nationalNumberPattern>999</nationalNumberPattern>
23107         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23108         <exampleNumber>999</exampleNumber>
23109       </emergency>
23110     </territory>
23111
23112     <!-- United States -->
23113     <!-- http://www.nanpa.com/reports/reports_npa.html -->
23114     <!-- http://en.wikipedia.org/wiki/North_American_Numbering_Plan -->
23115     <!-- Note the national prefix of US is the same as its country code, and when formatting phone
23116          numbers in the national format, it is not included. Therefore, we omit it here to make
23117          formatting consistent with the rest of the world. The same applies to all the
23118          countries/regions under NANPA -->
23119     <!-- The national prefix of "1" here is the same as the country code. It is not used by default
23120          when formatting, but is set here so that users who are calling formatByPattern can specify
23121          NationalPrefixFormattingRule if they want to. -->
23122     <territory id="US" countryCode="1" internationalPrefix="011" mainCountryForCode="true"
23123                nationalPrefix="1" nationalPrefixOptionalWhenFormatting="true">
23124       <availableFormats>
23125         <numberFormat pattern="(\d{3})(\d{4})">
23126           <format>$1-$2</format>
23127           <intlFormat>NA</intlFormat>
23128         </numberFormat>
23129         <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
23130           <format>($1) $2-$3</format>
23131           <!-- A different pattern is used when formatting internationally, as the area code is no
23132                longer optional and should not be in brackets. -->
23133           <intlFormat>$1-$2-$3</intlFormat>
23134         </numberFormat>
23135       </availableFormats>
23136       <generalDesc>
23137         <nationalNumberPattern>[2-9]\d{9}</nationalNumberPattern>
23138         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23139       </generalDesc>
23140       <fixedLine>
23141         <nationalNumberPattern>
23142           (?:
23143             2(?:
23144               0[1-35-9]|
23145               1[02-9]|
23146               2[4589]|
23147               3[149]|
23148               4[08]|
23149               5[1-46]|
23150               6[0279]|
23151               7[06]|
23152               8[13]
23153             )|
23154             3(?:
23155               0[1-57-9]|
23156               1[02-9]|
23157               2[0135]|
23158               3[014679]|
23159               47|
23160               5[12]|
23161               6[01]|
23162               8[056]
23163             )|
23164             4(?:
23165               0[124-9]|
23166               1[02-579]|
23167               2[3-5]|
23168               3[0245]|
23169               4[0235]|
23170               58|
23171               69|
23172               7[0589]|
23173               8[04]
23174             )|
23175             5(?:
23176               0[1-57-9]|
23177               1[0235-8]|
23178               20|
23179               3[0149]|
23180               4[01]|
23181               5[19]|
23182               6[1-37]|
23183               7[013-5]|
23184               8[056]
23185             )|
23186             6(?:
23187               0[1-35-9]|
23188               1[024-9]|
23189               2[036]|
23190               3[016]|
23191               4[16]|
23192               5[017]|
23193               6[0-279]|
23194               78|
23195               8[12]
23196             )|
23197             7(?:
23198               0[1-46-8]|
23199               1[02-9]|
23200               2[047]|
23201               3[124]|
23202               4[07]|
23203               5[47]|
23204               6[02359]|
23205               7[02-59]|
23206               8[156]
23207             )|
23208             8(?:
23209               0[1-68]|
23210               1[02-8]|
23211               28|
23212               3[0-25]|
23213               4[3578]|
23214               5[06-9]|
23215               6[02-5]|
23216               7[028]
23217             )|
23218             9(?:
23219               0[1346-9]|
23220               1[02-9]|
23221               2[0589]|
23222               3[1678]|
23223               4[0179]|
23224               5[1246]|
23225               7[0-3589]|
23226               8[0459]
23227             )
23228           )[2-9]\d{6}
23229         </nationalNumberPattern>
23230         <exampleNumber>2015555555</exampleNumber>
23231       </fixedLine>
23232       <mobile>
23233         <nationalNumberPattern>
23234           (?:
23235             2(?:
23236               0[1-35-9]|
23237               1[02-9]|
23238               2[4589]|
23239               3[149]|
23240               4[08]|
23241               5[1-46]|
23242               6[0279]|
23243               7[06]|
23244               8[13]
23245             )|
23246             3(?:
23247               0[1-57-9]|
23248               1[02-9]|
23249               2[0135]|
23250               3[014679]|
23251               47|
23252               5[12]|
23253               6[01]|
23254               8[056]
23255             )|
23256             4(?:
23257               0[124-9]|
23258               1[02-579]|
23259               2[3-5]|
23260               3[0245]|
23261               4[0235]|
23262               58|
23263               69|
23264               7[0589]|
23265               8[04]
23266             )|
23267             5(?:
23268               0[1-57-9]|
23269               1[0235-8]|
23270               20|
23271               3[0149]|
23272               4[01]|
23273               5[19]|
23274               6[1-37]|
23275               7[013-5]|
23276               8[056]
23277             )|
23278             6(?:
23279               0[1-35-9]|
23280               1[024-9]|
23281               2[036]|
23282               3[016]|
23283               4[16]|
23284               5[017]|
23285               6[0-279]|
23286               78|
23287               8[12]
23288             )|
23289             7(?:
23290               0[1-46-8]|
23291               1[02-9]|
23292               2[047]|
23293               3[124]|
23294               4[07]|
23295               5[47]|
23296               6[02359]|
23297               7[02-59]|
23298               8[156]
23299             )|
23300             8(?:
23301               0[1-68]|
23302               1[02-8]|
23303               28|
23304               3[0-25]|
23305               4[3578]|
23306               5[06-9]|
23307               6[02-5]|
23308               7[028]
23309             )|
23310             9(?:
23311               0[1346-9]|
23312               1[02-9]|
23313               2[0589]|
23314               3[1678]|
23315               4[0179]|
23316               5[1246]|
23317               7[0-3589]|
23318               8[0459]
23319             )
23320           )[2-9]\d{6}
23321         </nationalNumberPattern>
23322         <exampleNumber>2015555555</exampleNumber>
23323       </mobile>
23324       <tollFree>
23325         <nationalNumberPattern>
23326           8(?:
23327             00|
23328             55|
23329             66|
23330             77|
23331             88
23332           )[2-9]\d{6}
23333         </nationalNumberPattern>
23334         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23335         <exampleNumber>8002345678</exampleNumber>
23336       </tollFree>
23337       <premiumRate>
23338         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23339         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23340         <exampleNumber>9002345678</exampleNumber>
23341       </premiumRate>
23342       <personalNumber>
23343         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
23344         <nationalNumberPattern>
23345           5(?:
23346             00|
23347             33|
23348             44
23349           )[2-9]\d{6}
23350         </nationalNumberPattern>
23351         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23352         <exampleNumber>5002345678</exampleNumber>
23353       </personalNumber>
23354       <emergency>
23355         <nationalNumberPattern>
23356           112|
23357           911
23358         </nationalNumberPattern>
23359         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23360         <exampleNumber>911</exampleNumber>
23361       </emergency>
23362     </territory>
23363
23364     <!-- Uruguay -->
23365     <!-- http://www.itu.int/oth/T02020000E0/en -->
23366     <!-- http://www.ursec.gub.uy -->
23367     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Uruguay -->
23368     <!-- International long-distance providers can be dialled by dialling 01 followed by a carrier
23369          code JK, where J = [3-9] and K is any digit. -->
23370     <territory id="UY" countryCode="598" internationalPrefix="0(?:1[3-9]\d|0)"
23371                preferredInternationalPrefix="00" nationalPrefix="0" preferredExtnPrefix=" int. ">
23372       <availableFormats>
23373         <!-- Following paginasamarillas.com.uy formatting. -->
23374         <numberFormat pattern="(\d{4})(\d{4})">
23375           <leadingDigits>[24]</leadingDigits>
23376           <format>$1 $2</format>
23377         </numberFormat>
23378         <!-- Including the national prefix here since URSEC does when formatting these. -->
23379         <numberFormat pattern="(\d{2})(\d{3})(\d{3})" nationalPrefixFormattingRule="$NP$FG">
23380           <leadingDigits>9[1-9]</leadingDigits>
23381           <format>$1 $2 $3</format>
23382         </numberFormat>
23383         <numberFormat pattern="(\d{3})(\d{4})" nationalPrefixFormattingRule="$NP$FG">
23384           <leadingDigits>[89]0</leadingDigits>
23385           <format>$1 $2</format>
23386         </numberFormat>
23387       </availableFormats>
23388       <generalDesc>
23389         <nationalNumberPattern>[2489]\d{6,7}</nationalNumberPattern>
23390         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
23391       </generalDesc>
23392       <fixedLine>
23393         <nationalNumberPattern>
23394           2\d{7}|
23395           4[2-7]\d{6}
23396         </nationalNumberPattern>
23397         <exampleNumber>21231234</exampleNumber>
23398       </fixedLine>
23399       <mobile>
23400         <nationalNumberPattern>9[13-9]\d{6}</nationalNumberPattern>
23401         <possibleNumberPattern>\d{8}</possibleNumberPattern>
23402         <exampleNumber>94231234</exampleNumber>
23403       </mobile>
23404       <tollFree>
23405         <nationalNumberPattern>80[05]\d{4}</nationalNumberPattern>
23406         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23407         <exampleNumber>8001234</exampleNumber>
23408       </tollFree>
23409       <premiumRate>
23410         <nationalNumberPattern>90[0-8]\d{4}</nationalNumberPattern>
23411         <possibleNumberPattern>\d{7}</possibleNumberPattern>
23412         <exampleNumber>9001234</exampleNumber>
23413       </premiumRate>
23414       <emergency>
23415         <nationalNumberPattern>
23416           128|
23417           911
23418         </nationalNumberPattern>
23419         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23420         <exampleNumber>911</exampleNumber>
23421       </emergency>
23422      </territory>
23423
23424     <!-- Uzbekistan -->
23425     <!-- http://www.ttts.uz/eng/telephone_codes/codes_uzb_eng -->
23426     <!-- http://www.itu.int/oth/T02020000E1/en -->
23427     <territory id="UZ" countryCode="998" preferredInternationalPrefix="8~10"
23428                internationalPrefix="810" nationalPrefix="8"
23429                nationalPrefixFormattingRule="$NP $FG">
23430       <availableFormats>
23431         <numberFormat pattern="([679]\d)(\d{3})(\d{2})(\d{2})">
23432           <format>$1 $2 $3 $4</format>
23433         </numberFormat>
23434       </availableFormats>
23435       <generalDesc>
23436         <nationalNumberPattern>[679]\d{8}</nationalNumberPattern>
23437         <possibleNumberPattern>\d{7,9}</possibleNumberPattern>
23438       </generalDesc>
23439       <fixedLine>
23440         <!-- Adding 711 from numbers found online, such as the US embassy, and 6922, which seems to
23441              be used in Namangan. -->
23442         <nationalNumberPattern>
23443           (?:
23444             6(?:
23445               1(?:
23446                 22|
23447                 3[124]|
23448                 4[1-4]|
23449                 5[123578]|
23450                 64
23451               )|
23452               2(?:
23453                 22|
23454                 3[0-57-9]|
23455                 41
23456               )|
23457               5(?:
23458                 22|
23459                 3[3-7]|
23460                 5[024-8]
23461               )|
23462               6\d{2}|
23463               7(?:
23464                 [23]\d|
23465                 7[69]
23466               )|
23467               9(?:
23468                 22|
23469                 4[1-8]|
23470                 6[135]
23471               )
23472             )|
23473             7(?:
23474               0(?:
23475                 5[4-9]|
23476                 6[0146]|
23477                 7[12456]|
23478                 9[135-8]
23479               )|
23480               1[12]\d|
23481               2(?:
23482                 22|
23483                 3[1345789]|
23484                 4[123579]|
23485                 5[14]
23486               )|
23487               3(?:
23488                 2\d|
23489                 3[1578]|
23490                 4[1-35-7]|
23491                 5[1-57]|
23492                 61
23493               )|
23494               4(?:
23495                 2\d|
23496                 3[1-579]|
23497                 7[1-79]
23498               )|
23499               5(?:
23500                 22|
23501                 5[1-9]|
23502                 6[1457]
23503               )|
23504               6(?:
23505                 22|
23506                 3[12457]|
23507                 4[13-8]
23508               )|
23509               9(?:
23510                 22|
23511                 5[1-9]
23512               )
23513             )
23514           )\d{5}
23515         </nationalNumberPattern>
23516         <exampleNumber>662345678</exampleNumber>
23517       </fixedLine>
23518       <mobile>
23519         <!-- Adding 9[45] as suggested by http://www.ucell.uz/en/for_subscribers/how_to_call.html
23520              Adding other prefixes from http://www.weltvorwahlen.de/99861353.html, and any other
23521              prefixes Tyntec has a carrier mapped to. -->
23522         <nationalNumberPattern>
23523           6(?:
23524             1(?:
23525               2(?:
23526                 98|
23527                 2[01]
23528               )|
23529               35[0-4]|
23530               50\d|
23531               61[23]|
23532               7(?:
23533                 [01][017]|
23534                 4\d|
23535                 55|
23536                 9[5-9]
23537               )
23538             )|
23539             2(?:
23540               11\d|
23541               2(?:
23542                 [12]1|
23543                 9[01379]
23544               )|
23545               5(?:
23546                 [126]\d|
23547                 3[0-4]
23548               )|
23549               7\d{2}
23550             )|
23551             5(?:
23552               19[01]|
23553               2(?:
23554                 27|
23555                 9[26]
23556               )|
23557               30\d|
23558               59\d|
23559               7\d{2}
23560             )|
23561             6(?:
23562               2(?:
23563                 1[5-9]|
23564                 2[0367]|
23565                 38|
23566                 41|
23567                 52|
23568                 60
23569               )|
23570               3[79]\d|
23571               4(?:
23572                 56|
23573                 83
23574               )|
23575               7(?:
23576                 [07]\d|
23577                 1[017]|
23578                 3[07]|
23579                 4[047]|
23580                 5[057]|
23581                 67|
23582                 8[0178]|
23583                 9[79]
23584                 )|
23585               9[0-3]\d
23586             )|
23587             7(?:
23588               2(?:
23589                 24|
23590                 3[237]|
23591                 4[5-9]|
23592                 7[15-8]
23593               )|
23594               5(?:
23595                 7[12]|
23596                 8[0589]
23597               )|
23598               7(?:
23599                 0\d|
23600                 [39][07]
23601               )|
23602               9(?:
23603                 0\d|
23604                 7[079]
23605               )
23606             )|
23607             9(
23608               2(?:
23609                 1[1267]|
23610                 5\d|
23611                 3[01]|
23612                 7[0-4]
23613               )|
23614               5[67]\d|
23615               6(?:
23616                 2[0-26]|
23617                 8\d
23618               )|
23619               7\d{2}
23620             )
23621           )\d{4}|
23622           7(?:
23623             0\d{3}|
23624             1(?:
23625               13[01]|
23626               6(?:
23627                 0[47]|
23628                 1[67]|
23629                 66
23630               )|
23631               71[3-69]|
23632               98\d
23633             )|
23634             2(?:
23635               2(?:
23636                 2[79]|
23637                 95
23638               )|
23639               3(?:
23640                 2[5-9]|
23641                 6[0-6]
23642               )|
23643               57\d|
23644               7(?:
23645                 0\d|
23646                 1[17]|
23647                 2[27]|
23648                 3[37]|
23649                 44|
23650                 5[057]|
23651                 66|
23652                 88
23653               )
23654             )|
23655             3(?:
23656               2(?:
23657                 1[0-6]|
23658                 21|
23659                 3[469]|
23660                 7[159]
23661               )|
23662               33\d|
23663               5(?:
23664                 0[0-4]|
23665                 5[579]|
23666                 9\d
23667               )|
23668               7(?:
23669                 [0-3579]\d|
23670                 4[0467]|
23671                 6[67]|
23672                 8[078]
23673               )|
23674               9[4-6]\d
23675             )|
23676             4(?:
23677               2(?:
23678                 29|
23679                 5[0257]|
23680                 6[0-7]|
23681                 7[1-57]
23682               )|
23683               5(?:
23684                 1[0-4]|
23685                 8\d|
23686                 9[5-9]
23687               )|
23688               7(?:
23689                 0\d|
23690                 1[024589]|
23691                 2[0127]|
23692                 3[0137]|
23693                 [46][07]|
23694                 5[01]|
23695                 7[5-9]|
23696                 9[079]
23697               )|
23698               9(?:
23699                 7[015-9]|
23700                 [89]\d
23701               )
23702             )|
23703             5(?:
23704               112|
23705               2(?:
23706                 0\d|
23707                 2[29]|
23708                 [49]4
23709               )|
23710               3[1568]\d|
23711               52[6-9]|
23712               7(?:
23713                 0[01578]|
23714                 1[017]|
23715                 [23]7|
23716                 4[047]|
23717                 [5-7]\d|
23718                 8[78]|
23719                 9[079]
23720               )
23721             )|
23722             6(?:
23723               2(?:
23724                 2[1245]|
23725                 4[2-4]
23726               )|
23727               39\d|
23728               41[179]|
23729               5(?:
23730                 [349]\d|
23731                 5[0-2]
23732               )|
23733               7(?:
23734                 0[017]|
23735                 [13]\d|
23736                 22|
23737                 44|
23738                 55|
23739                 67|
23740                 88
23741               )
23742             )|
23743             9(?:
23744               22[128]|
23745               3(?:
23746                 2[0-4]|
23747                 7\d
23748               )|
23749               57[05629]|
23750               7(?:
23751                 2[05-9]|
23752                 3[37]|
23753                 4\d|
23754                 60|
23755                 7[2579]|
23756                 87|
23757                 9[07]
23758               )
23759             )
23760           )\d{4}|
23761           9[0-57-9]\d{7}
23762         </nationalNumberPattern>
23763         <exampleNumber>912345678</exampleNumber>
23764       </mobile>
23765       <!-- No tollFree or premiumRate information can be found. -->
23766       <emergency>
23767         <!-- http://travel.state.gov/travel/cis_pa_tw/cis/cis_1057.html
23768              http://www.expat.uz/index.php?/Emergency-Numbers.html
23769              http://www.mts.uz/en/citycodes/how_to_call_sos
23770              Note that the third source, for a local mobile company, comments that a '*' needs to
23771              be dialled before the 2-digit emergency numbers on their cell-phone. This is not
23772              explicitly handled here, but instead is handled by normalising input in the code. -->
23773         <nationalNumberPattern>
23774           0(?:
23775             0[123]|
23776             [123]|
23777             50
23778           )
23779         </nationalNumberPattern>
23780         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
23781         <exampleNumber>01</exampleNumber>
23782       </emergency>
23783     </territory>
23784
23785     <!-- Vatican City -->
23786     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Vatican_City -->
23787     <!-- Note that numbers here are also accessible via Italy (+39 and prefix of 06 698) but can
23788          also be dialled with the Vatican City country code. -->
23789     <territory id="VA" countryCode="379" internationalPrefix="00" leadingZeroPossible="true">
23790       <availableFormats>
23791         <numberFormat pattern="(06)(\d{4})(\d{4})">
23792           <format>$1 $2 $3</format>
23793         </numberFormat>
23794       </availableFormats>
23795       <generalDesc>
23796         <nationalNumberPattern>06\d{8}</nationalNumberPattern>
23797         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23798       </generalDesc>
23799       <fixedLine>
23800         <nationalNumberPattern>06698\d{5}</nationalNumberPattern>
23801         <exampleNumber>0669812345</exampleNumber>
23802       </fixedLine>
23803       <mobile>
23804         <!-- We have no information on mobile numbers from the Vatican. It is probable that they use
23805              Italian mobile contracts. -->
23806         <nationalNumberPattern>N/A</nationalNumberPattern>
23807         <possibleNumberPattern>N/A</possibleNumberPattern>
23808       </mobile>
23809       <!-- No information exists about other types of numbers. -->
23810       <emergency>
23811         <nationalNumberPattern>11[2358]</nationalNumberPattern>
23812         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23813         <exampleNumber>113</exampleNumber>
23814       </emergency>
23815     </territory>
23816
23817     <!-- Saint Vincent and the Grenadines -->
23818     <!-- http://www.itu.int/oth/T02020000B3/en -->
23819     <territory id="VC" countryCode="1" leadingDigits="784" nationalPrefix="1"
23820                internationalPrefix="011">
23821       <generalDesc>
23822         <!-- NANPA country - uses US formatting rules -->
23823         <nationalNumberPattern>[5789]\d{9}</nationalNumberPattern>
23824         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23825       </generalDesc>
23826       <fixedLine>
23827         <nationalNumberPattern>
23828           784(?:
23829             266|
23830             3(?:
23831               6[6-9]|
23832               7\d|
23833               8[0-24-6]
23834             )|
23835             4(?:
23836               38|
23837               5[0-36-8]|
23838               8\d|
23839               9[01]
23840             )|
23841             555|
23842             638|
23843             784
23844           )\d{4}
23845         </nationalNumberPattern>
23846         <exampleNumber>7842661234</exampleNumber>
23847       </fixedLine>
23848       <mobile>
23849         <!-- Adding 784 433 and 784 534 since online numbers can be found with these prefixes, and
23850              the latter seems, according to some online sources, to be assigned to Digicell. -->
23851         <nationalNumberPattern>
23852           784(?:
23853             4(?:
23854               3[0-4]|
23855               5[45]|
23856               9[2-5]
23857             )|
23858             5(?:
23859               2[6-9]|
23860               3[0-4]|
23861               93
23862             )
23863           )\d{4}
23864         </nationalNumberPattern>
23865         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23866         <exampleNumber>7844301234</exampleNumber>
23867       </mobile>
23868       <tollFree>
23869         <nationalNumberPattern>
23870           8(?:
23871             00|
23872             55|
23873             66|
23874             77|
23875             88
23876           )[2-9]\d{6}
23877         </nationalNumberPattern>
23878         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23879         <exampleNumber>8002345678</exampleNumber>
23880       </tollFree>
23881       <premiumRate>
23882         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
23883         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23884         <exampleNumber>9002345678</exampleNumber>
23885       </premiumRate>
23886       <personalNumber>
23887         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
23888         <nationalNumberPattern>
23889           5(?:
23890             00|
23891             33|
23892             44
23893           )[2-9]\d{6}
23894         </nationalNumberPattern>
23895         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23896         <exampleNumber>5002345678</exampleNumber>
23897       </personalNumber>
23898       <emergency>
23899         <!-- http://barbados.usembassy.gov/emergency-svg.html
23900              http://travel.state.gov/travel/cis_pa_tw/cis/cis_1028.html?action=/travel/cis_pa_tw/cis/cis_1100.html -->
23901         <nationalNumberPattern>
23902           9(?:
23903             11|
23904             99
23905           )
23906         </nationalNumberPattern>
23907         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23908         <exampleNumber>911</exampleNumber>
23909       </emergency>
23910     </territory>
23911
23912     <!-- Venezuela -->
23913     <!-- http://www.itu.int/oth/T02020000E3/en -->
23914     <!-- http://en.wikipedia.org/wiki/+58 -->
23915     <!-- 1XX specifies a particular carrier to route a call to. -->
23916     <territory id="VE" countryCode="58" internationalPrefix="00"
23917                nationalPrefix="0" nationalPrefixForParsing="(1\d{2})|0"
23918                nationalPrefixFormattingRule="$NP$FG"
23919                carrierCodeFormattingRule="$CC $FG">
23920       <availableFormats>
23921         <numberFormat pattern="(\d{3})(\d{7})">
23922           <format>$1-$2</format>
23923         </numberFormat>
23924       </availableFormats>
23925       <generalDesc>
23926         <nationalNumberPattern>[24589]\d{9}</nationalNumberPattern>
23927         <!-- Open numbering plan. -->
23928         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
23929       </generalDesc>
23930       <fixedLine>
23931         <!-- Including region-free 500 calls here, since these are treated as local calls. Wikipedia
23932              mentions these as 5XX, but online examples that can be found are seemingly restricted
23933              to 50[01]. -->
23934         <nationalNumberPattern>
23935           (?:
23936             2(?:
23937               12|
23938               3[457-9]|
23939               [58][1-9]|
23940               [467]\d|
23941               9[1-6]
23942             )|
23943             50[01]
23944           )\d{7}
23945         </nationalNumberPattern>
23946         <exampleNumber>2121234567</exampleNumber>
23947       </fixedLine>
23948       <mobile>
23949         <nationalNumberPattern>
23950           4(?:
23951             1[24-8]|
23952             2[46]
23953           )\d{7}
23954         </nationalNumberPattern>
23955         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23956         <exampleNumber>4121234567</exampleNumber>
23957       </mobile>
23958       <tollFree>
23959         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
23960         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23961         <exampleNumber>8001234567</exampleNumber>
23962       </tollFree>
23963       <premiumRate>
23964         <nationalNumberPattern>900\d{7}</nationalNumberPattern>
23965         <possibleNumberPattern>\d{10}</possibleNumberPattern>
23966         <exampleNumber>9001234567</exampleNumber>
23967       </premiumRate>
23968       <emergency>
23969         <nationalNumberPattern>171</nationalNumberPattern>
23970         <possibleNumberPattern>\d{3}</possibleNumberPattern>
23971         <exampleNumber>171</exampleNumber>
23972       </emergency>
23973     </territory>
23974
23975     <!-- Virgin Islands, British -->
23976     <!-- http://www.itu.int/oth/T020200001E/en -->
23977     <territory id="VG" countryCode="1" leadingDigits="284" nationalPrefix="1"
23978                internationalPrefix="011">
23979       <generalDesc>
23980         <!-- NANPA country - uses US formatting rules -->
23981         <nationalNumberPattern>[2589]\d{9}</nationalNumberPattern>
23982         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
23983       </generalDesc>
23984       <fixedLine>
23985         <!-- No data on central office codes can be found on the nanpa.com website. The codes 422
23986              and 774 have been added from numbers found in the white pages.  -->
23987         <nationalNumberPattern>
23988           284(?:
23989             (?:
23990               229|
23991               4(?:
23992                 22|
23993                 9[45]
23994               )|
23995               774|
23996               8(?:
23997                 52|
23998                 6[459]
23999               )
24000             )\d{4}|
24001             496[0-5]\d{3}
24002           )
24003         </nationalNumberPattern>
24004         <exampleNumber>2842291234</exampleNumber>
24005       </fixedLine>
24006       <mobile>
24007         <!-- No data on central office codes can be found on the nanpa.com website. The codes
24008              34[0-367], 446 and 54[57] have been added from numbers found in the white pages.  -->
24009         <nationalNumberPattern>
24010           284(?:
24011             (?:
24012               3(?:
24013                 0[0-3]|
24014                 4[0-367]
24015               )|
24016               4(?:
24017                 4[0-6]|
24018                 68|
24019                 99
24020               )|
24021               54[0-57]
24022             )\d{4}|
24023             496[6-9]\d{3}
24024           )
24025         </nationalNumberPattern>
24026         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24027         <exampleNumber>2843001234</exampleNumber>
24028       </mobile>
24029       <tollFree>
24030         <nationalNumberPattern>
24031           8(?:
24032             00|
24033             55|
24034             66|
24035             77|
24036             88
24037           )[2-9]\d{6}
24038         </nationalNumberPattern>
24039         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24040         <exampleNumber>8002345678</exampleNumber>
24041       </tollFree>
24042       <premiumRate>
24043         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
24044         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24045         <exampleNumber>9002345678</exampleNumber>
24046       </premiumRate>
24047       <personalNumber>
24048         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
24049         <nationalNumberPattern>
24050           5(?:
24051             00|
24052             33|
24053             44
24054           )[2-9]\d{6}
24055         </nationalNumberPattern>
24056         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24057         <exampleNumber>5002345678</exampleNumber>
24058       </personalNumber>
24059       <emergency>
24060         <!-- http://barbados.usembassy.gov/emergency-bvi.html
24061              http://www.britishvirginislands.com/ntk_emergency.htm -->
24062         <nationalNumberPattern>
24063           9(?:
24064             11|
24065             99
24066           )
24067         </nationalNumberPattern>
24068         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24069         <exampleNumber>911</exampleNumber>
24070       </emergency>
24071     </territory>
24072
24073     <!-- Virgin Islands, United States -->
24074     <!-- http://www.itu.int/oth/T02020000DF/en -->
24075     <territory id="VI" countryCode="1" leadingDigits="340" nationalPrefix="1"
24076                internationalPrefix="011">
24077       <generalDesc>
24078         <!-- NANPA country - uses US formatting rules -->
24079         <nationalNumberPattern>[3589]\d{9}</nationalNumberPattern>
24080         <possibleNumberPattern>\d{7}(?:\d{3})?</possibleNumberPattern>
24081       </generalDesc>
24082       <fixedLine>
24083         <!-- The ITU document seems a bit out-of-date so extra prefixes based on numbers in the
24084              yellow pages have been added, and the list of exchanges found on
24085              http://www.areacodedownload.com/340/index.html -->
24086         <nationalNumberPattern>
24087           340(?:
24088             2(?:
24089               01|
24090               2[067]|
24091               36|
24092               44|
24093               77
24094             )|
24095             3(?:
24096               32|
24097               44
24098             )|
24099             4(?:
24100               4[38]|
24101               7[34]
24102             )|
24103             5(?:
24104               1[34]|
24105               55
24106             )|
24107             6(?:
24108               26|
24109               4[23]|
24110               9[023]
24111             )|
24112             7(?:
24113               [17]\d|
24114               27
24115             )|
24116             884|
24117             998
24118           )\d{4}
24119         </nationalNumberPattern>
24120         <exampleNumber>3406421234</exampleNumber>
24121       </fixedLine>
24122       <mobile>
24123         <nationalNumberPattern>
24124           340(?:
24125             2(?:
24126               01|
24127               2[067]|
24128               36|
24129               44|
24130               77
24131             )|
24132             3(?:
24133               32|
24134               44
24135             )|
24136             4(?:
24137               4[38]|
24138               7[34]
24139             )|
24140             5(?:
24141               1[34]|
24142               55
24143             )|
24144             6(?:
24145               26|
24146               4[23]|
24147               9[023]
24148             )|
24149             7(?:
24150               [17]\d|
24151               27
24152             )|
24153             884|
24154             998
24155           )\d{4}
24156         </nationalNumberPattern>
24157         <exampleNumber>3406421234</exampleNumber>
24158       </mobile>
24159       <tollFree>
24160         <nationalNumberPattern>
24161           8(?:
24162             00|
24163             55|
24164             66|
24165             77|
24166             88
24167           )[2-9]\d{6}
24168         </nationalNumberPattern>
24169         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24170         <exampleNumber>8002345678</exampleNumber>
24171       </tollFree>
24172       <premiumRate>
24173         <nationalNumberPattern>900[2-9]\d{6}</nationalNumberPattern>
24174         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24175         <exampleNumber>9002345678</exampleNumber>
24176       </premiumRate>
24177       <personalNumber>
24178         <!-- http://www.nanpa.com/pdf/PL_416.pdf -->
24179         <nationalNumberPattern>
24180           5(?:
24181             00|
24182             33|
24183             44
24184           )[2-9]\d{6}
24185         </nationalNumberPattern>
24186         <possibleNumberPattern>\d{10}</possibleNumberPattern>
24187         <exampleNumber>5002345678</exampleNumber>
24188       </personalNumber>
24189       <emergency>
24190         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
24191         <nationalNumberPattern>911</nationalNumberPattern>
24192         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24193         <exampleNumber>911</exampleNumber>
24194       </emergency>
24195     </territory>
24196
24197     <!-- Viet Nam (Vietnam) -->
24198     <!-- http://www.itu.int/oth/T02020000E4/en -->
24199     <!-- http://en.wikipedia.org/wiki/%2B84 -->
24200     <territory id="VN" countryCode="84" internationalPrefix="00"
24201                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"
24202                nationalPrefixOptionalWhenFormatting="true">
24203       <availableFormats>
24204         <numberFormat pattern="([17]99)(\d{4})">
24205           <leadingDigits>[17]99</leadingDigits>
24206           <format>$1 $2</format>
24207         </numberFormat>
24208         <numberFormat pattern="([48])(\d{4})(\d{4})">
24209           <leadingDigits>[48]</leadingDigits>
24210           <format>$1 $2 $3</format>
24211         </numberFormat>
24212         <numberFormat pattern="([235-7]\d)(\d{4})(\d{3})">
24213           <leadingDigits>
24214             2[025-79]|
24215             3[0136-9]|
24216             5[2-9]|
24217             6[0-46-8]|
24218             7[02-79]
24219           </leadingDigits>
24220           <format>$1 $2 $3</format>
24221         </numberFormat>
24222         <numberFormat pattern="(80)(\d{5})">
24223           <leadingDigits>80</leadingDigits>
24224           <format>$1 $2</format>
24225         </numberFormat>
24226         <numberFormat pattern="(69\d)(\d{4,5})">
24227           <leadingDigits>69</leadingDigits>
24228           <format>$1 $2</format>
24229         </numberFormat>
24230         <numberFormat pattern="([235-7]\d{2})(\d{4})(\d{3})">
24231           <leadingDigits>
24232             2[1348]|
24233             3[25]|
24234             5[01]|
24235             65|
24236             7[18]
24237           </leadingDigits>
24238           <format>$1 $2 $3</format>
24239         </numberFormat>
24240         <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})">
24241           <leadingDigits>9</leadingDigits>
24242           <format>$1 $2 $3 $4</format>
24243         </numberFormat>
24244         <numberFormat pattern="(1[2689]\d)(\d{3})(\d{4})">
24245           <leadingDigits>
24246             1(?:
24247               [26]|
24248               8[68]|
24249               99
24250             )
24251           </leadingDigits>
24252           <format>$1 $2 $3</format>
24253         </numberFormat>
24254         <numberFormat nationalPrefixFormattingRule="$FG"
24255           pattern="(1[89]00)(\d{4,6})">
24256           <leadingDigits>1[89]0</leadingDigits>
24257           <format>$1 $2</format>
24258         </numberFormat>
24259       </availableFormats>
24260       <generalDesc>
24261         <nationalNumberPattern>
24262           [17]\d{6,9}|
24263           [2-69]\d{7,9}|
24264           8\d{6,8}
24265         </nationalNumberPattern>
24266         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
24267       </generalDesc>
24268       <noInternationalDialling>
24269         <nationalNumberPattern>
24270           [17]99\d{4}|
24271           69\d{5,6}
24272         </nationalNumberPattern>
24273         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
24274         <exampleNumber>1992000</exampleNumber>
24275       </noInternationalDialling>
24276       <fixedLine>
24277         <nationalNumberPattern>
24278           (?:
24279             2(?:
24280               [025-79]|
24281               1[0189]|
24282               [348][01]
24283             )|
24284             3(?:
24285               [0136-9]|
24286               [25][01]
24287             )|
24288             4\d|
24289             5(?:
24290               [01][01]|
24291               [2-9]
24292             )|
24293             6(?:
24294               [0-46-8]|
24295               5[01]
24296             )|
24297             7(?:
24298               [02-79]|
24299               [18][01]
24300             )|
24301             8[1-9]
24302           )\d{7}
24303         </nationalNumberPattern>
24304         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24305         <exampleNumber>2101234567</exampleNumber>
24306       </fixedLine>
24307       <mobile>
24308         <nationalNumberPattern>
24309           (?:
24310             9\d|
24311             1(?:
24312               2\d|
24313               6[2-9]|
24314               8[68]|
24315               99
24316             )
24317           )\d{7}
24318         </nationalNumberPattern>
24319         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
24320         <exampleNumber>912345678</exampleNumber>
24321       </mobile>
24322       <tollFree>
24323         <nationalNumberPattern>1800\d{4,6}</nationalNumberPattern>
24324         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
24325         <exampleNumber>1800123456</exampleNumber>
24326       </tollFree>
24327       <premiumRate>
24328         <nationalNumberPattern>1900\d{4,6}</nationalNumberPattern>
24329         <possibleNumberPattern>\d{8,10}</possibleNumberPattern>
24330         <exampleNumber>1900123456</exampleNumber>
24331       </premiumRate>
24332       <uan>
24333         <!-- These include non-geographic fixed numbers, such as for government ministries. While
24334         listed as "private networks", they may actually be callable from within Vietnam. (They are
24335         "private" in the sense that ordinary people could not be assigned these numbers.) -->
24336         <nationalNumberPattern>
24337           [17]99\d{4}|
24338           69\d{5,6}|
24339           80\d{5}
24340         </nationalNumberPattern>
24341         <possibleNumberPattern>\d{7,8}</possibleNumberPattern>
24342         <exampleNumber>1992000</exampleNumber>
24343       </uan>
24344       <emergency>
24345         <nationalNumberPattern>11[345]</nationalNumberPattern>
24346         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24347         <exampleNumber>113</exampleNumber>
24348       </emergency>
24349     </territory>
24350
24351     <!-- Vanuatu -->
24352     <!-- http://www.itu.int/oth/T02020000E2/en -->
24353     <territory id="VU" countryCode="678" internationalPrefix="00">
24354       <!-- Should be formatted in one block, apart from the mobile numbers. -->
24355       <availableFormats>
24356         <numberFormat pattern="(\d{3})(\d{4})">
24357           <leadingDigits>[579]</leadingDigits>
24358           <format>$1 $2</format>
24359         </numberFormat>
24360       </availableFormats>
24361       <generalDesc>
24362         <nationalNumberPattern>[2-57-9]\d{4,6}</nationalNumberPattern>
24363         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
24364       </generalDesc>
24365       <fixedLine>
24366         <nationalNumberPattern>
24367           (?:
24368             2[2-9]\d|
24369             3(?:
24370               [5-7]\d|
24371               8[0-8]
24372             )|
24373             48[4-9]|
24374             88\d
24375           )\d{2}
24376         </nationalNumberPattern>
24377         <possibleNumberPattern>\d{5}</possibleNumberPattern>
24378         <exampleNumber>22123</exampleNumber>
24379       </fixedLine>
24380       <mobile>
24381         <nationalNumberPattern>
24382           (?:
24383             5(?:
24384               7[2-5]|
24385               [3-69]\d
24386             )|
24387             7[013-7]\d
24388           )\d{4}
24389         </nationalNumberPattern>
24390         <possibleNumberPattern>\d{7}</possibleNumberPattern>
24391         <exampleNumber>5912345</exampleNumber>
24392       </mobile>
24393       <!-- Using this for non-geographical numbers, since they have not been clearly defined, and
24394            for government fixed-line numbers. -->
24395       <uan>
24396         <nationalNumberPattern>
24397           3[03]\d{3}|
24398           900\d{4}
24399         </nationalNumberPattern>
24400         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
24401         <exampleNumber>30123</exampleNumber>
24402       </uan>
24403       <emergency>
24404         <nationalNumberPattern>112</nationalNumberPattern>
24405         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24406         <exampleNumber>112</exampleNumber>
24407       </emergency>
24408     </territory>
24409
24410     <!-- Wallis and Futuna (Territoire français d'outre-mer) -->
24411     <!-- http://www.itu.int/oth/T02020000E6/en -->
24412     <territory id="WF" countryCode="681" internationalPrefix="00">
24413       <availableFormats>
24414         <numberFormat pattern="(\d{2})(\d{2})(\d{2})">
24415           <format>$1 $2 $3</format>
24416         </numberFormat>
24417       </availableFormats>
24418       <generalDesc>
24419         <nationalNumberPattern>[5-7]\d{5}</nationalNumberPattern>
24420         <possibleNumberPattern>\d{6}</possibleNumberPattern>
24421       </generalDesc>
24422       <fixedLine>
24423         <!-- Web searching only finds examples with the 72 prefix but the ITU document states that
24424              50 and 68 are possible, so they are included here. -->
24425         <nationalNumberPattern>
24426           (?:
24427             50|
24428             68|
24429             72
24430           )\d{4}
24431         </nationalNumberPattern>
24432         <exampleNumber>501234</exampleNumber>
24433       </fixedLine>
24434       <mobile>
24435         <nationalNumberPattern>
24436           (?:
24437             50|
24438             68|
24439             72
24440           )\d{4}
24441         </nationalNumberPattern>
24442         <exampleNumber>501234</exampleNumber>
24443       </mobile>
24444       <!-- http://lannuaire.service-public.fr/navigation/wallis-et-futuna-wallis-futuna-alofi.html
24445            -->
24446       <emergency>
24447         <nationalNumberPattern>1[578]</nationalNumberPattern>
24448         <possibleNumberPattern>\d{2}</possibleNumberPattern>
24449         <exampleNumber>15</exampleNumber>
24450       </emergency>
24451     </territory>
24452
24453     <!-- Samoa -->
24454     <!-- http://www.itu.int/oth/T02020000B4/en -->
24455     <territory id="WS" countryCode="685" internationalPrefix="0">
24456       <availableFormats>
24457         <!-- Should be formatted in one block, apart from the specific series below. -->
24458         <numberFormat pattern="(8\d{2})(\d{3,4})">
24459           <leadingDigits>8</leadingDigits>
24460           <format>$1 $2</format>
24461         </numberFormat>
24462         <numberFormat pattern="(7\d)(\d{5})">
24463           <leadingDigits>7</leadingDigits>
24464           <format>$1 $2</format>
24465         </numberFormat>
24466       </availableFormats>
24467       <generalDesc>
24468         <nationalNumberPattern>[2-8]\d{4,6}</nationalNumberPattern>
24469         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
24470       </generalDesc>
24471       <fixedLine>
24472         <nationalNumberPattern>
24473           (?:
24474             [2-5]\d|
24475             6[1-9]|
24476             84\d{2}
24477           )\d{3}
24478         </nationalNumberPattern>
24479         <possibleNumberPattern>\d{5,7}</possibleNumberPattern>
24480         <exampleNumber>22123</exampleNumber>
24481       </fixedLine>
24482       <mobile>
24483         <nationalNumberPattern>
24484           (?:
24485             60|
24486             7[25-7]\d
24487           )\d{4}
24488         </nationalNumberPattern>
24489         <possibleNumberPattern>\d{6,7}</possibleNumberPattern>
24490         <exampleNumber>601234</exampleNumber>
24491       </mobile>
24492       <tollFree>
24493         <!-- The 800 number series is new, and is used by companies such as the ANZ bank in Samoa to
24494              provide 24 hour eMerchant support. It is marked as "Customized Services" in the plan
24495              for now, so may be also used for other purposes than toll free, but until we have
24496              further evidence of these we will keep it as toll free. -->
24497         <nationalNumberPattern>800\d{3}</nationalNumberPattern>
24498         <possibleNumberPattern>\d{6}</possibleNumberPattern>
24499         <exampleNumber>800123</exampleNumber>
24500       </tollFree>
24501       <!-- Current research suggests other types of numbers are not used in Samoa. -->
24502       <emergency>
24503         <!-- http://www.blueskysamoa.ws/?page_id=509 -->
24504         <nationalNumberPattern>99[4-6]</nationalNumberPattern>
24505         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24506         <exampleNumber>994</exampleNumber>
24507       </emergency>
24508     </territory>
24509
24510     <!-- Yemen -->
24511     <!-- http://www.itu.int/oth/T02020000E7/en -->
24512     <territory id="YE" countryCode="967" internationalPrefix="00"
24513                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24514       <availableFormats>
24515         <numberFormat pattern="([1-7])(\d{3})(\d{3,4})">
24516           <leadingDigits>
24517             [1-6]|
24518             7[24-68]
24519           </leadingDigits>
24520           <format>$1 $2 $3</format>
24521         </numberFormat>
24522         <numberFormat pattern="(7\d{2})(\d{3})(\d{3})">
24523           <leadingDigits>7[0137]</leadingDigits>
24524           <format>$1 $2 $3</format>
24525         </numberFormat>
24526       </availableFormats>
24527       <generalDesc>
24528         <nationalNumberPattern>[1-7]\d{6,8}</nationalNumberPattern>
24529         <possibleNumberPattern>\d{6,9}</possibleNumberPattern>
24530       </generalDesc>
24531       <fixedLine>
24532         <nationalNumberPattern>
24533           (?:
24534             1(?:
24535               7\d|
24536               [2-68]
24537             )|
24538             2[2-68]|
24539             3[2358]|
24540             4[2-58]|
24541             5[2-6]|
24542             6[3-58]|
24543             7[24-68]
24544           )\d{5}
24545         </nationalNumberPattern>
24546         <possibleNumberPattern>\d{6,8}</possibleNumberPattern>
24547         <exampleNumber>1234567</exampleNumber>
24548       </fixedLine>
24549       <mobile>
24550         <!-- Adding 70 from numbers found online. -->
24551         <nationalNumberPattern>7[0137]\d{7}</nationalNumberPattern>
24552         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24553         <exampleNumber>712345678</exampleNumber>
24554       </mobile>
24555       <!-- No tollFree or premiumRate information can be found. -->
24556       <emergency>
24557         <!-- http://www.yemenypages.com/en/emergency_numbers.aspx -->
24558         <!-- http://studentsabroad.state.gov/content/pdfs/911_ABROAD.pdf -->
24559         <!-- http://www.netglobers.com/asia/yemen-emergency-numbers-in-yemen.html -->
24560         <nationalNumberPattern>19[1459]</nationalNumberPattern>
24561         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24562         <exampleNumber>191</exampleNumber>
24563       </emergency>
24564     </territory>
24565
24566     <!-- Mayotte -->
24567     <!-- Some information at http://en.wikipedia.org/wiki/Telephone_numbers_in_France - most from
24568          collection of internet data. http://www.comores-online.com/mwezinet/internet/262.htm
24569          verifies the fixed-line prefixes, but the mobile prefixes listed here seem out of date.
24570          -->
24571     <territory id="YT" countryCode="262" internationalPrefix="00" nationalPrefix="0"
24572                nationalPrefixFormattingRule="$NP$FG" leadingDigits="269|63">
24573       <!-- Formatting as per La Réunion. -->
24574       <generalDesc>
24575         <nationalNumberPattern>[268]\d{8}</nationalNumberPattern>
24576         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24577       </generalDesc>
24578       <fixedLine>
24579         <nationalNumberPattern>2696[0-4]\d{4}</nationalNumberPattern>
24580         <exampleNumber>269601234</exampleNumber>
24581       </fixedLine>
24582       <mobile>
24583         <nationalNumberPattern>639\d{6}</nationalNumberPattern>
24584         <exampleNumber>639123456</exampleNumber>
24585       </mobile>
24586       <!-- Same as in France. -->
24587       <tollFree>
24588         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
24589         <exampleNumber>801234567</exampleNumber>
24590       </tollFree>
24591       <!-- http://www.sfr-mayotte.com/la-carte/les-services-@/article.jspz?oid=679&categ=345 -->
24592       <!-- http://www.sccfd.org/travel.html -->
24593       <emergency>
24594         <nationalNumberPattern>
24595           1(?:
24596             12|
24597             5
24598           )
24599         </nationalNumberPattern>
24600         <possibleNumberPattern>\d{2,3}</possibleNumberPattern>
24601         <exampleNumber>15</exampleNumber>
24602       </emergency>
24603     </territory>
24604
24605     <!-- South Africa -->
24606     <!-- http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000C10001PDFE.pdf -->
24607     <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa -->
24608     <territory id="ZA" countryCode="27" internationalPrefix="00"
24609                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24610       <availableFormats>
24611         <numberFormat pattern="(860)(\d{3})(\d{3})">
24612           <leadingDigits>860</leadingDigits>
24613           <format>$1 $2 $3</format>
24614         </numberFormat>
24615         <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
24616           <leadingDigits>
24617             [1-79]|
24618             8(?:
24619               [0-47]|
24620               6[1-9]
24621             )
24622           </leadingDigits>
24623           <format>$1 $2 $3</format>
24624         </numberFormat>
24625         <numberFormat pattern="(\d{2})(\d{3,4})">
24626           <leadingDigits>8[1-4]</leadingDigits>
24627           <format>$1 $2</format>
24628         </numberFormat>
24629         <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
24630           <leadingDigits>8[1-4]</leadingDigits>
24631           <format>$1 $2 $3</format>
24632         </numberFormat>
24633       </availableFormats>
24634       <generalDesc>
24635         <nationalNumberPattern>
24636           [1-79]\d{8}|
24637           8(?:
24638             [067]\d{7}|
24639             [1-4]\d{3,7}
24640           )
24641         </nationalNumberPattern>
24642         <possibleNumberPattern>\d{5,9}</possibleNumberPattern>
24643       </generalDesc>
24644       <fixedLine>
24645         <!-- Wikipedia is missing 020, and the 024 code it lists for Somerset West stopped being
24646              used in 1996. -->
24647         <nationalNumberPattern>
24648           (?:
24649             1[0-8]|
24650             2[0-378]|
24651             3[1-69]|
24652             4\d|
24653             5[1346-8]
24654           )\d{7}
24655         </nationalNumberPattern>
24656         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24657         <exampleNumber>101234567</exampleNumber>
24658       </fixedLine>
24659       <mobile>
24660         <!-- Wikipedia says 085 is for cellular: ITU says it is protected. Also note that we are
24661              still supporting numbers beginning with 8 that are fewer than 9 digits since they are
24662              in prominent places online, even though the ITU document says numbers must be 10 digits
24663              long (including the national prefix). -->
24664         <nationalNumberPattern>
24665           (?:
24666             6[0-5]|
24667             7[0-46-9]
24668           )\d{7}|
24669           8[1-4]\d{3,7}
24670         </nationalNumberPattern>
24671         <exampleNumber>711234567</exampleNumber>
24672       </mobile>
24673       <tollFree>
24674         <nationalNumberPattern>80\d{7}</nationalNumberPattern>
24675         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24676         <exampleNumber>801234567</exampleNumber>
24677       </tollFree>
24678       <premiumRate>
24679         <nationalNumberPattern>
24680           86[2-9]\d{6}|
24681           90\d{7}
24682         </nationalNumberPattern>
24683         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24684         <exampleNumber>862345678</exampleNumber>
24685       </premiumRate>
24686       <sharedCost>
24687         <nationalNumberPattern>860\d{6}</nationalNumberPattern>
24688         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24689         <exampleNumber>860123456</exampleNumber>
24690       </sharedCost>
24691       <voip>
24692         <nationalNumberPattern>87\d{7}</nationalNumberPattern>
24693         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24694         <exampleNumber>871234567</exampleNumber>
24695       </voip>
24696       <uan>
24697         <!-- MaxiCall numbers cost as much as national long distance, so they are classified as UAN
24698              numbers. -->
24699         <nationalNumberPattern>861\d{6}</nationalNumberPattern>
24700         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24701         <exampleNumber>861123456</exampleNumber>
24702       </uan>
24703       <emergency>
24704         <nationalNumberPattern>
24705           1(?:
24706             01(?:
24707               11|
24708               77
24709             )|
24710             12
24711           )
24712         </nationalNumberPattern>
24713         <possibleNumberPattern>\d{3,5}</possibleNumberPattern>
24714         <exampleNumber>10111</exampleNumber>
24715       </emergency>
24716     </territory>
24717
24718     <!-- Zambia -->
24719     <!-- http://www.itu.int/oth/T02020000E8/en -->
24720     <territory id="ZM" countryCode="260" internationalPrefix="00"
24721                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24722       <availableFormats>
24723         <numberFormat pattern="([29]\d)(\d{7})">
24724           <leadingDigits>[29]</leadingDigits>
24725           <format>$1 $2</format>
24726         </numberFormat>
24727         <numberFormat pattern="(800)(\d{3})(\d{3})">
24728           <leadingDigits>8</leadingDigits>
24729           <format>$1 $2 $3</format>
24730         </numberFormat>
24731       </availableFormats>
24732       <generalDesc>
24733         <nationalNumberPattern>[289]\d{8}</nationalNumberPattern>
24734         <possibleNumberPattern>\d{9}</possibleNumberPattern>
24735       </generalDesc>
24736       <fixedLine>
24737         <nationalNumberPattern>21[1-8]\d{6}</nationalNumberPattern>
24738         <exampleNumber>211234567</exampleNumber>
24739       </fixedLine>
24740       <mobile>
24741         <!-- Adding extra prefixes 50, 6[1-57-9] and 7[13-6] since SMS messages have been
24742              successfully delivered to these numbers, and numbers like this can be found on the
24743              Internet. Adding prefix 960 based on information received from MTN Zambia. -->
24744         <nationalNumberPattern>
24745           9(?:
24746             5[05]|
24747             6\d|
24748             7[13-9]
24749           )\d{6}
24750         </nationalNumberPattern>
24751         <exampleNumber>955123456</exampleNumber>
24752       </mobile>
24753       <tollFree>
24754         <nationalNumberPattern>800\d{6}</nationalNumberPattern>
24755         <exampleNumber>800123456</exampleNumber>
24756       </tollFree>
24757       <emergency>
24758         <nationalNumberPattern>
24759           (?:
24760             112|
24761             99[139]
24762           )
24763         </nationalNumberPattern>
24764         <possibleNumberPattern>\d{3}</possibleNumberPattern>
24765         <exampleNumber>999</exampleNumber>
24766       </emergency>
24767     </territory>
24768
24769     <!-- Zimbabwe -->
24770     <!-- http://www.itu.int/oth/T02020000E9/en -->
24771     <territory id="ZW" countryCode="263" internationalPrefix="00"
24772                nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG">
24773       <availableFormats>
24774         <!-- One-digit area codes -->
24775         <numberFormat pattern="([49])(\d{3})(\d{2,5})">
24776           <leadingDigits>
24777             4|
24778             9[2-9]
24779           </leadingDigits>
24780           <format>$1 $2 $3</format>
24781         </numberFormat>
24782         <!-- Mobile numbers -->
24783         <numberFormat pattern="([179]\d)(\d{3})(\d{3,4})">
24784           <leadingDigits>
24785             [19]1|
24786             7
24787           </leadingDigits>
24788           <format>$1 $2 $3</format>
24789         </numberFormat>
24790         <numberFormat pattern="(86\d{2})(\d{3})(\d{3})">
24791           <leadingDigits>86[24]</leadingDigits>
24792           <format>$1 $2 $3</format>
24793         </numberFormat>
24794         <!-- Three-digit area codes (listed before the two-digit ones since some overlap) -->
24795         <numberFormat pattern="([2356]\d{2})(\d{3,5})">
24796           <leadingDigits>
24797             2(?:
24798               [278]|
24799               0[45]|
24800               [49]8
24801             )|
24802             3(?:
24803               08|
24804               17|
24805               3[78]|
24806               [78]
24807             )|
24808             5[15][78]|
24809             6(?:
24810               [29]8|
24811               37|
24812               [68][78]
24813             )
24814           </leadingDigits>
24815           <format>$1 $2</format>
24816         </numberFormat>
24817         <numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
24818           <leadingDigits>
24819             2(?:
24820               [278]|
24821               0[45]|
24822               48
24823             )|
24824             3(?:
24825               08|
24826               17|
24827               3[78]|
24828               [78]
24829             )|
24830             5[15][78]|
24831             6(?:
24832               [29]8|
24833               37|
24834               [68][78]
24835             )|
24836             80
24837           </leadingDigits>
24838           <format>$1 $2 $3</format>
24839         </numberFormat>
24840         <!-- Two-digit area codes -->
24841         <numberFormat pattern="([1-356]\d)(\d{3,5})">
24842           <leadingDigits>
24843             1[3-9]|
24844             2(?:
24845               [1-469]|
24846               0[0-35-9]|
24847               [45][0-79]
24848             )|
24849             3(?:
24850               0[0-79]|
24851               1[0-689]|
24852               [24-69]|
24853               3[0-69]
24854             )|
24855             5(?:
24856               [02-46-9]|
24857               [15][0-69]
24858             )|
24859             6(?:
24860               [0145]|
24861               [29][0-79]|
24862               3[0-689]|
24863               [68][0-69]
24864             )
24865           </leadingDigits>
24866           <format>$1 $2</format>
24867         </numberFormat>
24868         <numberFormat pattern="([1-356]\d)(\d{3})(\d{3})">
24869           <leadingDigits>
24870             1[3-9]|
24871             2(?:
24872               [1-469]|
24873               0[0-35-9]|
24874               [45][0-79]
24875             )|
24876             3(?:
24877               0[0-79]|
24878               1[0-689]|
24879               [24-69]|
24880               3[0-69]
24881             )|
24882             5(?:
24883               [02-46-9]|
24884               [15][0-69]
24885             )|
24886             6(?:
24887               [0145]|
24888               [29][0-79]|
24889               3[0-689]|
24890               [68][0-69]
24891             )
24892           </leadingDigits>
24893           <format>$1 $2 $3</format>
24894         </numberFormat>
24895         <!-- Four-digit area codes -->
24896         <numberFormat pattern="([25]\d{3})(\d{3,5})">
24897           <leadingDigits>
24898             (?:
24899               25|
24900               54
24901             )8
24902           </leadingDigits>
24903           <leadingDigits>
24904             258[23]|
24905             5483
24906           </leadingDigits>
24907           <format>$1 $2</format>
24908         </numberFormat>
24909         <numberFormat pattern="([25]\d{3})(\d{3})(\d{3})">
24910           <leadingDigits>
24911             (?:
24912               25|
24913               54
24914             )8
24915           </leadingDigits>
24916           <leadingDigits>
24917             258[23]|
24918             5483
24919           </leadingDigits>
24920           <format>$1 $2 $3</format>
24921         </numberFormat>
24922         <!-- VOIP numbers -->
24923         <numberFormat pattern="(8\d{3})(\d{6})">
24924           <leadingDigits>86</leadingDigits>
24925           <format>$1 $2</format>
24926         </numberFormat>
24927       </availableFormats>
24928       <generalDesc>
24929         <!-- A complicated nationalNumberPattern is necessary here, since the numbers are extremely
24930              variable in length and the possible prefixes clash with the country code. -->
24931         <nationalNumberPattern>
24932           2(?:
24933             [012457-9]\d{3,8}|
24934             6\d{3,6}
24935           )|
24936           [13-79]\d{4,8}|
24937           8[06]\d{8}
24938         </nationalNumberPattern>
24939         <possibleNumberPattern>\d{3,10}</possibleNumberPattern>
24940       </generalDesc>
24941       <fixedLine>
24942         <!-- Numbering is grouped by subscriber-number length. -->
24943         <nationalNumberPattern>
24944           (?:
24945             1[3-9]|
24946             2(?:
24947               0[45]|
24948               [16]|
24949               2[28]|
24950               [49]8?|
24951               58[23]|
24952               7[246]|
24953               8[1346-9]
24954             )|
24955             3(?:
24956               08?|
24957               17?|
24958               3[78]|
24959               [2456]|
24960               7[1569]|
24961               8[379]
24962             )|
24963             5(?:
24964               [07-9]|
24965               1[78]|
24966               483|
24967               5(?:
24968                 7?|
24969                 8
24970               )
24971             )|
24972             6(?:
24973               0|
24974               28|
24975               37?|
24976               [45][68][78]|
24977               98?
24978             )|
24979             848
24980           )\d{3,6}|
24981           (?:
24982             2(?:
24983               27|
24984               5|
24985               7[135789]|
24986               8[25]
24987             )|
24988             3[39]|
24989             5[1-46]|
24990             6[126-8]
24991           )\d{4,6}|
24992           2(?:
24993             (?:
24994               0|
24995               70
24996             )\d{5,6}|
24997             2[05]\d{7}
24998           )|
24999           (?:
25000             4\d|
25001             9[2-8]
25002           )\d{4,7}
25003         </nationalNumberPattern>
25004         <exampleNumber>1312345</exampleNumber>
25005       </fixedLine>
25006       <!-- The ITU document list 8622 and 8644 as VoIP, but an online search reveals that they are
25007            also being used by the carriers as mobile prefixes. -->
25008       <mobile>
25009         <nationalNumberPattern>
25010           7[1378]\d{7}|
25011           86(?:
25012             22|
25013             44
25014           )\d{6}
25015         </nationalNumberPattern>
25016         <possibleNumberPattern>\d{9,10}</possibleNumberPattern>
25017         <exampleNumber>711234567</exampleNumber>
25018       </mobile>
25019       <tollFree>
25020         <nationalNumberPattern>800\d{7}</nationalNumberPattern>
25021         <possibleNumberPattern>\d{10}</possibleNumberPattern>
25022         <exampleNumber>8001234567</exampleNumber>
25023       </tollFree>
25024       <!-- No premiumRate information can be found. -->
25025       <voip>
25026         <nationalNumberPattern>
25027           86(?:
25028             1[12]|
25029             30|
25030             55|
25031             77|
25032             8[367]|
25033             99
25034           )\d{6}
25035         </nationalNumberPattern>
25036         <possibleNumberPattern>\d{10}</possibleNumberPattern>
25037         <exampleNumber>8686123456</exampleNumber>
25038       </voip>
25039       <emergency>
25040         <nationalNumberPattern>
25041           (?:
25042             112|
25043             99[3459]
25044           )
25045         </nationalNumberPattern>
25046         <possibleNumberPattern>\d{3}</possibleNumberPattern>
25047         <exampleNumber>999</exampleNumber>
25048       </emergency>
25049     </territory>
25050
25051     <!-- Universal International Toll Free Number -->
25052     <!-- http://www.itu.int/en/ITU-T/inr/unum/Pages/uifn.aspx -->
25053     <territory id="001" countryCode="800" leadingZeroPossible="true">
25054       <availableFormats>
25055         <numberFormat pattern="(\d{4})(\d{4})">
25056           <format>$1 $2</format>
25057         </numberFormat>
25058       </availableFormats>
25059       <generalDesc>
25060         <nationalNumberPattern>\d{8}</nationalNumberPattern>
25061         <possibleNumberPattern>\d{8}</possibleNumberPattern>
25062         <exampleNumber>12345678</exampleNumber>
25063       </generalDesc>
25064       <fixedLine>
25065         <nationalNumberPattern>NA</nationalNumberPattern>
25066         <possibleNumberPattern>NA</possibleNumberPattern>
25067       </fixedLine>
25068       <mobile>
25069         <nationalNumberPattern>NA</nationalNumberPattern>
25070         <possibleNumberPattern>NA</possibleNumberPattern>
25071       </mobile>
25072       <tollFree>
25073         <nationalNumberPattern>\d{8}</nationalNumberPattern>
25074       </tollFree>
25075     </territory>
25076
25077     <!-- Universal International Shared Cost Number -->
25078     <!-- http://www.itu.int/rec/T-REC-E.169-200205-I/en -->
25079     <territory id="001" countryCode="808" leadingZeroPossible="true">
25080       <availableFormats>
25081         <numberFormat pattern="(\d{4})(\d{4})">
25082           <format>$1 $2</format>
25083         </numberFormat>
25084       </availableFormats>
25085       <generalDesc>
25086         <nationalNumberPattern>\d{8}</nationalNumberPattern>
25087         <possibleNumberPattern>\d{8}</possibleNumberPattern>
25088         <exampleNumber>12345678</exampleNumber>
25089       </generalDesc>
25090       <fixedLine>
25091         <nationalNumberPattern>NA</nationalNumberPattern>
25092         <possibleNumberPattern>NA</possibleNumberPattern>
25093       </fixedLine>
25094       <mobile>
25095         <nationalNumberPattern>NA</nationalNumberPattern>
25096         <possibleNumberPattern>NA</possibleNumberPattern>
25097       </mobile>
25098       <sharedCost>
25099         <nationalNumberPattern>\d{8}</nationalNumberPattern>
25100       </sharedCost>
25101     </territory>
25102
25103     <!-- Inmarsat Global Limited -->
25104     <!-- http://www.itu.int/oth/T0202000065/en -->
25105     <!-- www.inmarsat.com -->
25106     <territory id="001" countryCode="870">
25107       <availableFormats>
25108         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
25109           <format>$1 $2 $3</format>
25110         </numberFormat>
25111       </availableFormats>
25112       <generalDesc>
25113         <nationalNumberPattern>[35-7]\d{8}</nationalNumberPattern>
25114         <possibleNumberPattern>\d{9}</possibleNumberPattern>
25115         <exampleNumber>301234567</exampleNumber>
25116       </generalDesc>
25117       <fixedLine>
25118         <nationalNumberPattern>NA</nationalNumberPattern>
25119         <possibleNumberPattern>NA</possibleNumberPattern>
25120       </fixedLine>
25121       <mobile>
25122         <!-- Assigning these to mobile since Inmarsat considers them to be mobile numbers. -->
25123         <nationalNumberPattern>
25124           (?:
25125             [356]\d|
25126             7[6-8]
25127           )\d{7}
25128         </nationalNumberPattern>
25129       </mobile>
25130     </territory>
25131
25132     <!-- VISIONng -->
25133     <!-- http://www.itu.int/oth/T02020000E5/en -->
25134     <!-- Number length has been derived from examples found online. -->
25135     <territory id="001" countryCode="878">
25136       <availableFormats>
25137         <!-- Formatting chosen based on online examples. -->
25138         <numberFormat pattern="(\d{2})(\d{5})(\d{5})">
25139           <format>$1 $2 $3</format>
25140         </numberFormat>
25141       </availableFormats>
25142       <generalDesc>
25143         <nationalNumberPattern>1\d{11}</nationalNumberPattern>
25144         <possibleNumberPattern>\d{12}</possibleNumberPattern>
25145         <exampleNumber>101234567890</exampleNumber>
25146       </generalDesc>
25147       <fixedLine>
25148         <nationalNumberPattern>NA</nationalNumberPattern>
25149         <possibleNumberPattern>NA</possibleNumberPattern>
25150       </fixedLine>
25151       <mobile>
25152         <nationalNumberPattern>NA</nationalNumberPattern>
25153         <possibleNumberPattern>NA</possibleNumberPattern>
25154       </mobile>
25155       <voip>
25156         <nationalNumberPattern>10\d{10}</nationalNumberPattern>
25157       </voip>
25158     </territory>
25159
25160     <!-- Iridium -->
25161     <!-- www.iridium.com -->
25162     <!-- http://www.itu.int/oth/T0202000069/en -->
25163     <!-- Globalstar also reports using this prefix, but we cannot find any online numbers with the
25164          Globalstar prefixes, so are not sure how exactly these work, and what length the numbers
25165          are. For this reason, we only support Iridium numbers at the moment. -->
25166     <territory id="001" countryCode="881">
25167       <availableFormats>
25168         <!-- Formatting chosen based on ITU document and Iridium website FAQ. -->
25169         <numberFormat pattern="(\d)(\d{3})(\d{5})">
25170           <leadingDigits>[67]</leadingDigits>
25171           <format>$1 $2 $3</format>
25172         </numberFormat>
25173       </availableFormats>
25174       <generalDesc>
25175         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
25176         <possibleNumberPattern>\d{9}</possibleNumberPattern>
25177         <exampleNumber>612345678</exampleNumber>
25178       </generalDesc>
25179       <fixedLine>
25180         <nationalNumberPattern>NA</nationalNumberPattern>
25181         <possibleNumberPattern>NA</possibleNumberPattern>
25182       </fixedLine>
25183       <mobile>
25184         <nationalNumberPattern>[67]\d{8}</nationalNumberPattern>
25185       </mobile>
25186     </territory>
25187
25188     <!-- BebbiCell (Formerly Global Networks Switzerland AG) +88234 -->
25189     <!-- http://www.itu.int/oth/T0202000054/en -->
25190     <!-- http://www.gsm.aq/numberplan.php -->
25191     <!-- http://www.global.aq -->
25192     <!-- Maritime Communications Partner (MCP) +88232 -->
25193     <!-- http://www.itu.int/oth/T02020000F4/en -->
25194     <!-- Oration Technologies +88237 -->
25195     <!-- http://www.itu.int/oth/T02020000A0/en -->
25196     <!-- Telespazio S.p.A. +88213 -->
25197     <!-- http://www.itu.int/oth/T02020000CC/en -->
25198     <!-- Thuraya +88216 -->
25199     <!-- http://www.itu.int/oth/T02020000CF/en -->
25200     <territory id="001" countryCode="882">
25201       <availableFormats>
25202         <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
25203           <leadingDigits>3[23]</leadingDigits>
25204           <format>$1 $2 $3</format>
25205         </numberFormat>
25206         <numberFormat pattern="(\d{2})(\d{5})">
25207           <leadingDigits>
25208             16|
25209             342
25210           </leadingDigits>
25211           <format>$1 $2</format>
25212         </numberFormat>
25213         <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
25214           <leadingDigits>34[57]</leadingDigits>
25215           <format>$1 $2 $3</format>
25216         </numberFormat>
25217         <numberFormat pattern="(\d{3})(\d{4})(\d{4})">
25218           <leadingDigits>348</leadingDigits>
25219           <format>$1 $2 $3</format>
25220         </numberFormat>
25221         <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
25222           <leadingDigits>1</leadingDigits>
25223           <format>$1 $2 $3</format>
25224         </numberFormat>
25225         <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
25226           <leadingDigits>16</leadingDigits>
25227           <format>$1 $2 $3</format>
25228         </numberFormat>
25229         <numberFormat pattern="(\d{2})(\d{4,5})(\d{5})">
25230           <leadingDigits>16</leadingDigits>
25231           <format>$1 $2 $3</format>
25232         </numberFormat>
25233       </availableFormats>
25234       <generalDesc>
25235         <nationalNumberPattern>[13]\d{6,11}</nationalNumberPattern>
25236         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
25237         <exampleNumber>3451234567</exampleNumber>
25238       </generalDesc>
25239       <fixedLine>
25240         <nationalNumberPattern>NA</nationalNumberPattern>
25241         <possibleNumberPattern>NA</possibleNumberPattern>
25242       </fixedLine>
25243       <mobile>
25244         <!-- Bebbicell Mobile numbers, MCP & Oration. We are guessing the number length for
25245              Oration based on numbers found online. -->
25246         <nationalNumberPattern>
25247           3(?:
25248             2\d{3}|
25249             37\d{2}|
25250             4(?:
25251               2|
25252               7\d{3}
25253             )
25254           )\d{4}
25255         </nationalNumberPattern>
25256         <possibleNumberPattern>\d{7,10}</possibleNumberPattern>
25257       </mobile>
25258       <voip>
25259         <!-- Telespazio S.p.A., Thuraya and Bebbicell VOIP numbers. -->
25260         <nationalNumberPattern>
25261           1(?:
25262             3(?:
25263               0[0347]|
25264               [13][0139]|
25265               2[035]|
25266               4[013568]|
25267               6[0459]|
25268               7[06]|
25269               8[15678]|
25270               9[0689]
25271             )\d{4}|
25272             6\d{5,10}
25273           )|
25274           345\d{7}
25275         </nationalNumberPattern>
25276         <possibleNumberPattern>\d{7,12}</possibleNumberPattern>
25277       </voip>
25278       <voicemail>
25279         <nationalNumberPattern>348[57]\d{7}</nationalNumberPattern>
25280         <possibleNumberPattern>\d{11}</possibleNumberPattern>
25281       </voicemail>
25282     </territory>
25283
25284     <!-- http://www.itu.int/oth/T02020000F3/en -->
25285     <!-- http://www.republicwireless.com/world-wi-fi-number -->
25286     <territory id="001" countryCode="883">
25287       <availableFormats>
25288         <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
25289           <format>$1 $2 $3</format>
25290         </numberFormat>
25291         <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3})">
25292           <format>$1 $2 $3 $4</format>
25293         </numberFormat>
25294       </availableFormats>
25295       <generalDesc>
25296         <!-- Wikipedia also listed a few other +883 ranges, but no information on their lengths and
25297              costs can be found online, so we don't include them here for now. -->
25298         <nationalNumberPattern>51\d{7}(?:\d{3})?</nationalNumberPattern>
25299         <possibleNumberPattern>\d{9}(?:\d{3})?</possibleNumberPattern>
25300         <exampleNumber>510012345</exampleNumber>
25301       </generalDesc>
25302       <fixedLine>
25303         <nationalNumberPattern>NA</nationalNumberPattern>
25304         <possibleNumberPattern>NA</possibleNumberPattern>
25305       </fixedLine>
25306       <mobile>
25307         <nationalNumberPattern>NA</nationalNumberPattern>
25308         <possibleNumberPattern>NA</possibleNumberPattern>
25309       </mobile>
25310       <voip>
25311         <nationalNumberPattern>
25312           51(?:
25313             00\d{5}(?:\d{3})?|
25314             10\d{8}
25315           )
25316         </nationalNumberPattern>
25317       </voip>
25318     </territory>
25319
25320     <!-- United Nations- OCHA -->
25321     <!-- http://www.itu.int/oth/T02020000FA/en -->
25322     <!-- Numbers here are classified as UAN, as they are non-geographical and universally
25323          accessible. In addition, the end-user tariff to reach these numbers is lower or similar to
25324          the tariff of a national call. -->
25325     <territory id="001" countryCode="888" leadingZeroPossible="true">
25326       <availableFormats>
25327         <numberFormat pattern="(\d{3})(\d{3})(\d{5})">
25328           <format>$1 $2 $3</format>
25329         </numberFormat>
25330       </availableFormats>
25331       <generalDesc>
25332         <nationalNumberPattern>\d{11}</nationalNumberPattern>
25333         <possibleNumberPattern>\d{11}</possibleNumberPattern>
25334         <exampleNumber>12345678901</exampleNumber>
25335       </generalDesc>
25336       <fixedLine>
25337         <nationalNumberPattern>NA</nationalNumberPattern>
25338         <possibleNumberPattern>NA</possibleNumberPattern>
25339       </fixedLine>
25340       <mobile>
25341         <nationalNumberPattern>NA</nationalNumberPattern>
25342         <possibleNumberPattern>NA</possibleNumberPattern>
25343       </mobile>
25344       <uan>
25345         <nationalNumberPattern>\d{11}</nationalNumberPattern>
25346       </uan>
25347     </territory>
25348
25349     <!-- Universal International Premium Rate Number -->
25350     <!-- http://www.itu.int/rec/T-REC-E.169-200205-I/en -->
25351     <territory id="001" countryCode="979" leadingZeroPossible="true">
25352       <availableFormats>
25353         <numberFormat pattern="(\d)(\d{4})(\d{4})">
25354           <format>$1 $2 $3</format>
25355         </numberFormat>
25356       </availableFormats>
25357       <generalDesc>
25358         <nationalNumberPattern>\d{9}</nationalNumberPattern>
25359         <possibleNumberPattern>\d{9}</possibleNumberPattern>
25360         <exampleNumber>123456789</exampleNumber>
25361       </generalDesc>
25362       <fixedLine>
25363         <nationalNumberPattern>NA</nationalNumberPattern>
25364         <possibleNumberPattern>NA</possibleNumberPattern>
25365       </fixedLine>
25366       <mobile>
25367         <nationalNumberPattern>NA</nationalNumberPattern>
25368         <possibleNumberPattern>NA</possibleNumberPattern>
25369       </mobile>
25370       <premiumRate>
25371         <nationalNumberPattern>\d{9}</nationalNumberPattern>
25372       </premiumRate>
25373     </territory>
25374   </territories>
25375 </phoneNumberMetadata>