• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!-- Copyright (C) 2011 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: Lara Rennie
16     @author: Shaopeng Jia
17
18     Additional Phone Number Formatting information, containing alternative
19     formats that are commonly used when writing phone numbers in certain
20     countries. Note that this is in addition to the formatting information
21     provided by the main PhoneNumberMetadata.xml file - formatting patterns
22     should not be duplicated.
23
24     Note also that only the most specific leading-digits pattern is present for
25     each pattern - the less specific ones are used only by the
26     AsYouTypeFormatter, and the AsYouTypeFormatter does not require information
27     on alternate formatting patterns.
28
29     For regions that share a country calling code, only the region with
30     mainCountryForCode set to true in PhoneNumberMetadata.xml should be present
31     here.
32
33     Note: Territories are in alphabetical order by their IDs, which are based on CLDR
34           two-letter region codes (or are set to "001" for non-geographical entities, which
35           represents "World" in the UN M.49 standard). The country names in the comments are the
36           official short names in English according to CLDR.
37
38     For more information on what each element represents, see resources/phonemetadata.proto
39-->
40
41<!DOCTYPE phoneNumberMetadata [
42    <!ELEMENT phoneNumberMetadata (territories)>
43    <!ELEMENT territories (territory+)>
44    <!ELEMENT territory (availableFormats)>
45    <!ELEMENT availableFormats (numberFormat+)>
46    <!ELEMENT numberFormat (leadingDigits*, format, intlFormat*)>
47    <!ELEMENT leadingDigits (#PCDATA)>
48    <!ELEMENT format (#PCDATA)>
49    <!ELEMENT intlFormat (#PCDATA)>
50
51    <!ATTLIST territory countryCode CDATA #REQUIRED>
52    <!ATTLIST territory nationalPrefix CDATA #IMPLIED>
53    <!ATTLIST numberFormat nationalPrefixFormattingRule CDATA #IMPLIED>
54    <!ATTLIST numberFormat pattern CDATA #REQUIRED>
55]>
56
57<phoneNumberMetadata>
58  <territories>
59    <!-- United Arab Emirates (AE) -->
60    <territory countryCode="971">
61      <availableFormats>
62        <!-- Alternate mobile formatting. -->
63        <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
64          <leadingDigits>5</leadingDigits>
65          <format>$1 $2 $3</format>
66        </numberFormat>
67      </availableFormats>
68    </territory>
69
70    <!-- Argentina (AR) -->
71    <territory countryCode="54">
72      <availableFormats>
73        <!-- Mobile & fixed-line four-digit area codes. -->
74        <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
75          <leadingDigits>
76            2(?:
77              [23]02|
78              6(?:
79                [25]|
80                4[6-8]
81              )|
82              9(?:
83                [02356]|
84                4[02568]|
85                72|
86                8[23]
87              )
88            )|
89            3(?:
90              3[28]|
91              4(?:
92                [04-79]|
93                3[5-8]|
94                8[2379]
95              )|
96              5(?:
97                [2467]|
98                3[237]|
99                8[2-5]
100              )|
101              7[1-578]|
102              8(?:
103                [2469]|
104                3[2578]|
105                5[4-8]|
106                7[36-8]|
107                8[5-8]
108              )
109            )|
110            2(?:
111              2[24-9]|
112              3[1-59]|
113              47
114            )
115          </leadingDigits>
116          <format>$1 $2 $3</format>
117        </numberFormat>
118        <!-- Mobile & fixed-line four-digit area codes. -->
119        <numberFormat pattern="(\d)(\d{4})(\d{3})(\d{3})">
120          <leadingDigits>
121            9(?:
122              2(?:
123                2[024-9]|
124                3[0-59]|
125                47|
126                6[245]|
127                9[02-8]
128              )|
129              3(?:
130                3[28]|
131                4[03-9]|
132                5[2-46-8]|
133                7[1-578]|
134                8[2-9]
135              )
136            )
137          </leadingDigits>
138          <format>$1 $2 $3 $4</format>
139        </numberFormat>
140      </availableFormats>
141    </territory>
142
143    <!-- Austria (AT) -->
144    <territory countryCode="43">
145      <availableFormats>
146        <!-- Vienna. -->
147        <numberFormat pattern="(\d)(\d{3})(\d{2})(\d{2,3})">
148          <leadingDigits>1</leadingDigits>
149          <format>$1 $2 $3 $4</format>
150        </numberFormat>
151        <numberFormat pattern="(\d)(\d{4,6})">
152          <leadingDigits>5[079]</leadingDigits>
153          <format>$1 $2</format>
154        </numberFormat>
155        <numberFormat pattern="(\d)(\d{7,8})">
156          <leadingDigits>5[079]</leadingDigits>
157          <format>$1 $2</format>
158        </numberFormat>
159        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2,3})">
160          <leadingDigits>5[079]</leadingDigits>
161          <format>$1 $2 $3 $4</format>
162        </numberFormat>
163        <numberFormat pattern="(\d{2})(\d{6,7})">
164          <leadingDigits>5[079]</leadingDigits>
165          <format>$1 $2</format>
166        </numberFormat>
167        <numberFormat pattern="(\d)(\d{9,12})">
168          <leadingDigits>5[079]</leadingDigits>
169          <format>$1 $2</format>
170        </numberFormat>
171        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{4})">
172          <leadingDigits>5[079]</leadingDigits>
173          <format>$1 $2 $3 $4</format>
174        </numberFormat>
175        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{2,4})">
176          <leadingDigits>5[079]</leadingDigits>
177          <format>$1 $2 $3 $4 $5</format>
178        </numberFormat>
179        <numberFormat pattern="(\d{2})(\d{5})(\d{4,6})">
180          <leadingDigits>5[079]</leadingDigits>
181          <format>$1 $2 $3</format>
182        </numberFormat>
183        <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{3,4})">
184          <leadingDigits>
185            (?:
186              31|
187              4
188            )6|
189            51|
190            6(?:
191              5[0-3579]|
192              [6-9]
193            )|
194            7(?:
195              20|
196              32|
197              8
198            )|
199            [89]
200          </leadingDigits>
201          <format>$1 $2 $3 $4</format>
202        </numberFormat>
203        <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2,3})">
204          <leadingDigits>
205            (?:
206              31|
207              4
208            )6|
209            51|
210            6(?:
211              5[0-3579]|
212              [6-9]
213            )|
214            7(?:
215              20|
216              32|
217              8
218            )|
219            [89]
220          </leadingDigits>
221          <format>$1 $2 $3 $4</format>
222        </numberFormat>
223        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2,3})">
224          <leadingDigits>
225            (?:
226              31|
227              4
228            )6|
229            51|
230            6(?:
231              5[0-3579]|
232              [6-9]
233            )|
234            7(?:
235              20|
236              32|
237              8
238            )|
239            [89]
240          </leadingDigits>
241          <format>$1 $2 $3 $4</format>
242        </numberFormat>
243        <numberFormat pattern="(\d{4})(\d{3})(\d{3,4})">
244          <leadingDigits>
245            2|
246            3(?:
247              1[1-578]|
248              [3-68]
249            )|
250            4[2378]|
251            5[2-6]|
252            6(?:
253              [124]|
254              5[468]
255            )|
256            7(?:
257              2[1-8]|
258              35|
259              [4-79]
260            )
261          </leadingDigits>
262          <format>$1 $2 $3</format>
263        </numberFormat>
264      </availableFormats>
265    </territory>
266
267    <!-- Australia (AU) -->
268    <territory countryCode="61">
269      <availableFormats>
270        <!-- Alternate formatting for toll-free & premium-rate numbers -->
271        <numberFormat pattern="(\d{4})(\d{2})(\d{2})(\d{2})">
272          <format>$1 $2 $3 $4</format>
273        </numberFormat>
274        <!-- Alternate formatting for toll-free & premium-rate numbers -->
275        <numberFormat pattern="(\d{4})(\d{6})">
276          <format>$1 $2</format>
277        </numberFormat>
278        <!-- Alternate formatting for toll-free & premium-rate numbers -->
279        <numberFormat pattern="(\d)(\d{3})(\d{3})(\d{3})">
280          <format>$1 $2 $3 $4</format>
281        </numberFormat>
282        <numberFormat pattern="(\d)(\d{8})">
283          <leadingDigits>[2378]</leadingDigits>
284          <format>$1 $2</format>
285        </numberFormat>
286      </availableFormats>
287    </territory>
288
289    <!-- Bulgaria (BG) -->
290    <territory countryCode="359">
291      <availableFormats>
292        <!-- Alternative formatting for Sofia. -->
293        <numberFormat pattern="(\d)(\d{3})(\d{2})(\d{2})">
294          <leadingDigits>2</leadingDigits>
295          <format>$1 $2 $3 $4</format>
296        </numberFormat>
297        <!-- Alternative mobile formatting. -->
298        <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
299          <leadingDigits>
300            8|
301            98
302          </leadingDigits>
303          <format>$1 $2 $3</format>
304        </numberFormat>
305        <!-- Alternative mobile formatting. -->
306        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
307          <leadingDigits>
308            8|
309            98
310          </leadingDigits>
311          <format>$1 $2 $3 $4</format>
312        </numberFormat>
313      </availableFormats>
314    </territory>
315
316    <!-- Brazil (BR) -->
317    <territory countryCode="55">
318      <availableFormats>
319        <numberFormat pattern="(\d{2})(\d{8})">
320          <leadingDigits>
321            [12467]|
322            3[1-578]|
323            5[13-5]|
324            [89][1-9]
325          </leadingDigits>
326          <format>$1 $2</format>
327        </numberFormat>
328      </availableFormats>
329    </territory>
330
331    <!-- Costa Rica (CR) -->
332    <territory countryCode="506">
333      <availableFormats>
334        <numberFormat pattern="(\d{4})(\d{2})(\d{2})">
335          <format>$1 $2 $3</format>
336        </numberFormat>
337      </availableFormats>
338    </territory>
339
340    <!-- Germany (DE) -->
341    <territory countryCode="49">
342      <availableFormats>
343        <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
344          <leadingDigits>
345            [34]0|
346            [68]9
347          </leadingDigits>
348          <format>$1 $2 $3</format>
349        </numberFormat>
350        <!-- Sometimes four-digit area codes are split into two groups of two. -->
351        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})">
352          <leadingDigits>
353            2(?:
354              0[4-6]|
355              1(?:
356                [035-9]|
357                29
358              )|
359              3[0235-9]|
360              7[2-7]
361            )|
362            3(?:
363              0|
364              3(?:
365                0[1-467]|
366                2[127-9]|
367                3[124578]|
368                7[1257-9]|
369                8[1256]|
370                9[145]
371              )|
372              4(?:
373                2[135]|
374                4[13578]|
375                9[1346]
376              )|
377              5(?:
378                0[14]|
379                2[1-3589]|
380                6[1-4]|
381                7[13468]|
382                8[13568]
383              )|
384              6(?:
385                2[1-489]|
386                3[124-6]|
387                6[13]|
388                7[12579]|
389                8[1-356]|
390                9[135]
391              )|
392              7(?:
393                2[1-7]|
394                4[145]|
395                6[1-5]|
396                7[1-4]
397              )|
398              8(?:
399                21|
400                6|
401                7[1467]|
402                8[136]
403              )|
404              9(?:
405                0[12479]|
406                2[1358]|
407                4[134679]|
408                6[1-9]|
409                7[136]|
410                8[147]
411              )
412            )|
413            4[01]|
414            50|
415            6[09]|
416            7(?:
417              0|
418              8[02-5]|
419              9[03-7]
420            )|
421            8(?:
422              3[02-46-9]|
423              5[03-9]|
424              6[2-8]|
425              8[024-6]|
426              9
427            )|
428            9(?:
429              0[7-9]|
430              7[02-467]
431            )|
432            (?:
433              45|
434              84
435            )[02-6]|
436            3(?:
437              83|
438              99
439            )[1468]|
440            3[68]4[1347]|
441            3(?:
442              47|
443              60
444            )[1356]|
445            (?:
446              66|
447              71|
448              80
449            )[2-9]|
450            3(?:
451              3[46]|
452              46|
453              5[49]
454            )[1246]|
455            (?:
456              22|
457              47|
458              81
459            )[02-79]|
460            3[4579]3[1357]|
461            (?:
462              28|
463              49|
464              5[79]|
465              7[27]|
466              9[589]
467            )[02-7]|
468            (?:
469              2[569]|
470              4[2-48]|
471              5[124-6]|
472              6[1-358]|
473              73|
474              82|
475              9[1-4]
476            )[02-9]|
477            (?:
478              24|
479              [49]6|
480              5[38]|
481              6[47]|
482              7[4-6]|
483              87
484            )[02-8]
485          </leadingDigits>
486          <format>$1 $2 $3 $4 $5</format>
487        </numberFormat>
488        <numberFormat pattern="(\d{2})(\d{4})(\d{3,4})">
489          <leadingDigits>
490            [34]0|
491            [68]9
492          </leadingDigits>
493          <format>$1 $2 $3</format>
494        </numberFormat>
495        <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{1,2})">
496          <leadingDigits>
497            [34]0|
498            [68]9
499          </leadingDigits>
500          <format>$1 $2 $3 $4</format>
501        </numberFormat>
502        <numberFormat pattern="(\d{2})(\d{3})(\d{3})(\d{2,3})">
503          <leadingDigits>
504            3[02]|
505            40|
506            [68]9
507          </leadingDigits>
508          <format>$1 $2 $3 $4</format>
509        </numberFormat>
510        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d)(\d{2})(\d{2})">
511          <leadingDigits>
512            3[02]|
513            40|
514            [68]9
515          </leadingDigits>
516          <format>$1 $2 $3 $4 $5 $6</format>
517        </numberFormat>
518        <numberFormat pattern="(\d{3})(\d{3})(\d{2,4})">
519          <leadingDigits>
520            2(?:
521              0[1-389]|
522              12[0-8]
523            )|
524            3(?:
525              [35-9][15]|
526              4[015]
527            )|
528            906|
529            2(?:
530              [13][14]|
531              2[18]
532            )|
533            (?:
534              2[4-9]|
535              4[2-9]|
536              [579][1-9]|
537              [68][1-8]
538            )1
539          </leadingDigits>
540          <format>$1 $2 $3</format>
541        </numberFormat>
542        <numberFormat pattern="(\d{3})(\d{4})(\d{3,4})">
543          <leadingDigits>
544            2(?:
545              0[1-389]|
546              12[0-8]
547            )|
548            3(?:
549              [35-9][15]|
550              4[015]
551            )|
552            906|
553            2(?:
554              [13][14]|
555              2[18]
556            )|
557            (?:
558              2[4-9]|
559              4[2-9]|
560              [579][1-9]|
561              [68][1-8]
562            )1
563          </leadingDigits>
564          <format>$1 $2 $3</format>
565        </numberFormat>
566        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{1,2})">
567          <leadingDigits>
568            2(?:
569              0[1-389]|
570              12[0-8]
571            )|
572            3(?:
573              [35-9][15]|
574              4[015]
575            )|
576            906|
577            2(?:
578              [13][14]|
579              2[18]
580            )|
581            (?:
582              2[4-9]|
583              4[2-9]|
584              [579][1-9]|
585              [68][1-8]
586            )1
587          </leadingDigits>
588          <format>$1 $2 $3 $4</format>
589        </numberFormat>
590        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})(\d{2})">
591          <leadingDigits>
592            2(?:
593              0[1-389]|
594              12[0-8]
595            )|
596            3(?:
597              [35-9][15]|
598              4[015]
599            )|
600            906|
601            2(?:
602              [13][14]|
603              2[18]
604            )|
605            (?:
606              2[4-9]|
607              4[2-9]|
608              [579][1-9]|
609              [68][1-8]
610            )1
611          </leadingDigits>
612          <format>$1 $2 $3 $4 $5</format>
613        </numberFormat>
614        <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2})">
615          <leadingDigits>
616            2(?:
617              0[1-389]|
618              12[0-8]
619            )|
620            3(?:
621              [35-9][15]|
622              4[015]
623            )|
624            906|
625            2(?:
626              [13][14]|
627              2[18]
628            )|
629            (?:
630              2[4-9]|
631              4[2-9]|
632              [579][1-9]|
633              [68][1-8]
634            )1
635          </leadingDigits>
636          <format>$1 $2 $3 $4</format>
637        </numberFormat>
638        <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2})(\d)">
639          <leadingDigits>
640            2(?:
641              0[1-389]|
642              12[0-8]
643            )|
644            3(?:
645              [35-9][15]|
646              4[015]
647            )|
648            906|
649            2(?:
650              [13][14]|
651              2[18]
652            )|
653            (?:
654              2[4-9]|
655              4[2-9]|
656              [579][1-9]|
657              [68][1-8]
658            )1
659          </leadingDigits>
660          <format>$1 $2 $3 $4 $5</format>
661        </numberFormat>
662        <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{2,3})">
663          <leadingDigits>
664            2(?:
665              0[1-389]|
666              12[0-8]
667            )|
668            3(?:
669              [35-9][15]|
670              4[015]
671            )|
672            906|
673            2(?:
674              [13][14]|
675              2[18]
676            )|
677            (?:
678              2[4-9]|
679              4[2-9]|
680              [579][1-9]|
681              [68][1-8]
682            )1
683          </leadingDigits>
684          <format>$1 $2 $3 $4</format>
685        </numberFormat>
686        <numberFormat pattern="(\d{4})(\d{3})(\d{1,4})">
687          <leadingDigits>
688            2(?:
689              0[4-6]|
690              1(?:
691                [035-9]|
692                29
693              )|
694              3[0235-9]|
695              7[2-7]
696            )|
697            3(?:
698              3(?:
699                0[1-467]|
700                2[127-9]|
701                3[124578]|
702                7[1257-9]|
703                8[1256]|
704                9[145]
705              )|
706              4(?:
707                2[135]|
708                4[13578]|
709                9[1346]
710              )|
711              5(?:
712                0[14]|
713                2[1-3589]|
714                6[1-4]|
715                7[13468]|
716                8[13568]
717              )|
718              6(?:
719                2[1-489]|
720                3[124-6]|
721                6[13]|
722                7[12579]|
723                8[1-356]|
724                9[135]
725              )|
726              7(?:
727                2[1-7]|
728                4[145]|
729                6[1-5]|
730                7[1-4]
731              )|
732              8(?:
733                21|
734                6|
735                7[1467]|
736                8[136]
737              )|
738              9(?:
739                0[12479]|
740                2[1358]|
741                4[134679]|
742                6[1-9]|
743                7[136]|
744                8[147]
745              )
746            )|
747            41|
748            [56]0|
749            7(?:
750              0[2-8]|
751              8[02-5]|
752              9[03-7]
753            )|
754            8(?:
755              3[02-46-9]|
756              5[03-9]|
757              6[2-8]|
758              8[024-6]
759            )|
760            9(?:
761              0[7-9]|
762              7[02-467]
763            )|
764            (?:
765              45|
766              84
767            )[02-6]|
768            3(?:
769              83|
770              99
771            )[1468]|
772            3[68]4[1347]|
773            3(?:
774              47|
775              60
776            )[1356]|
777            (?:
778              66|
779              71|
780              80
781            )[2-9]|
782            3(?:
783              3[46]|
784              46|
785              5[49]
786            )[1246]|
787            (?:
788              22|
789              47|
790              81
791            )[02-79]|
792            3[4579]3[1357]|
793            (?:
794              28|
795              49|
796              5[79]|
797              7[27]|
798              9[589]
799            )[02-7]|
800            (?:
801              2[569]|
802              4[2-48]|
803              5[124-6]|
804              6[1-358]|
805              73|
806              82|
807              9[1-4]
808            )[02-9]|
809            (?:
810              24|
811              [49]6|
812              5[38]|
813              6[47]|
814              7[4-6]|
815              87
816            )[02-8]
817          </leadingDigits>
818          <format>$1 $2 $3</format>
819        </numberFormat>
820        <!-- Sometimes four-digit area codes are split into two groups of two. -->
821        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
822          <leadingDigits>
823            2(?:
824              0[4-6]|
825              1(?:
826                [035-9]|
827                29
828              )|
829              3[0235-9]|
830              7[2-7]
831            )|
832            3(?:
833              3(?:
834                0[1-467]|
835                2[127-9]|
836                3[124578]|
837                7[1257-9]|
838                8[1256]|
839                9[145]
840              )|
841              4(?:
842                2[135]|
843                4[13578]|
844                9[1346]
845              )|
846              5(?:
847                0[14]|
848                2[1-3589]|
849                6[1-4]|
850                7[13468]|
851                8[13568]
852              )|
853              6(?:
854                2[1-489]|
855                3[124-6]|
856                6[13]|
857                7[12579]|
858                8[1-356]|
859                9[135]
860              )|
861              7(?:
862                2[1-7]|
863                4[145]|
864                6[1-5]|
865                7[1-4]
866              )|
867              8(?:
868                21|
869                6|
870                7[1467]|
871                8[136]
872              )|
873              9(?:
874                0[12479]|
875                2[1358]|
876                4[134679]|
877                6[1-9]|
878                7[136]|
879                8[147]
880              )
881            )|
882            41|
883            66[2-9]|
884            7(?:
885              1[2-9]|
886              8[02-5]|
887              9[03-7]
888            )|
889            8(?:
890              3[02-46-9]|
891              5[03-9]|
892              6[2-8]|
893              8[024-6]
894            )|
895            9(?:
896              0[7-9]|
897              7[02-467]
898            )|
899            [5-8]0|
900            (?:
901              45|
902              84
903            )[02-6]|
904            3(?:
905              83|
906              99
907            )[1468]|
908            3[68]4[1347]|
909            3(?:
910              47|
911              60
912            )[1356]|
913            3(?:
914              3[46]|
915              46|
916              5[49]
917            )[1246]|
918            (?:
919              22|
920              47|
921              81
922            )[02-79]|
923            3[4579]3[1357]|
924            (?:
925              28|
926              49|
927              5[79]|
928              7[27]|
929              9[589]
930            )[02-7]|
931            (?:
932              2[569]|
933              4[2-48]|
934              5[124-6]|
935              6[1-358]|
936              73|
937              82|
938              9[1-4]
939            )[02-9]|
940            (?:
941              24|
942              [49]6|
943              5[38]|
944              6[47]|
945              7[4-6]|
946              87
947            )[02-8]
948          </leadingDigits>
949          <format>$1 $2 $3 $4</format>
950        </numberFormat>
951        <!-- Sometimes four-digit area codes are split into two groups of two. -->
952        <numberFormat pattern="(\d{2})(\d{2})(\d)(\d{2})(\d{2})">
953          <leadingDigits>
954            2(?:
955              0[4-6]|
956              1(?:
957                [035-9]|
958                29
959              )|
960              3[0235-9]|
961              7[2-7]
962            )|
963            3(?:
964              3(?:
965                0[1-467]|
966                2[127-9]|
967                3[124578]|
968                7[1257-9]|
969                8[1256]|
970                9[145]
971              )|
972              4(?:
973                2[135]|
974                4[13578]|
975                9[1346]
976              )|
977              5(?:
978                0[14]|
979                2[1-3589]|
980                6[1-4]|
981                7[13468]|
982                8[13568]
983              )|
984              6(?:
985                2[1-489]|
986                3[124-6]|
987                6[13]|
988                7[12579]|
989                8[1-356]|
990                9[135]
991              )|
992              7(?:
993                2[1-7]|
994                4[145]|
995                6[1-5]|
996                7[1-4]
997              )|
998              8(?:
999                21|
1000                6|
1001                7[1467]|
1002                8[136]
1003              )|
1004              9(?:
1005                0[12479]|
1006                2[1358]|
1007                4[134679]|
1008                6[1-9]|
1009                7[136]|
1010                8[147]
1011              )
1012            )|
1013            41|
1014            66[2-9]|
1015            7(?:
1016              1[2-9]|
1017              8[02-5]|
1018              9[03-7]
1019            )|
1020            8(?:
1021              3[02-46-9]|
1022              5[03-9]|
1023              6[2-8]|
1024              8[024-6]
1025            )|
1026            9(?:
1027              0[7-9]|
1028              7[02-467]
1029            )|
1030            [5-8]0|
1031            (?:
1032              45|
1033              84
1034            )[02-6]|
1035            3(?:
1036              83|
1037              99
1038            )[1468]|
1039            3[68]4[1347]|
1040            3(?:
1041              47|
1042              60
1043            )[1356]|
1044            3(?:
1045              3[46]|
1046              46|
1047              5[49]
1048            )[1246]|
1049            (?:
1050              22|
1051              47|
1052              81
1053            )[02-79]|
1054            3[4579]3[1357]|
1055            (?:
1056              28|
1057              49|
1058              5[79]|
1059              7[27]|
1060              9[589]
1061            )[02-7]|
1062            (?:
1063              2[569]|
1064              4[2-48]|
1065              5[124-6]|
1066              6[1-358]|
1067              73|
1068              82|
1069              9[1-4]
1070            )[02-9]|
1071            (?:
1072              24|
1073              [49]6|
1074              5[38]|
1075              6[47]|
1076              7[4-6]|
1077              87
1078            )[02-8]
1079          </leadingDigits>
1080          <format>$1 $2 $3 $4 $5</format>
1081        </numberFormat>
1082        <!-- Sometimes four-digit area codes are split into two groups of two. -->
1083        <numberFormat pattern="(\d{2})(\d{2})(\d)(\d{2})(\d{2})(\d{2})">
1084          <leadingDigits>
1085            2(?:
1086              0[4-6]|
1087              1(?:
1088                [035-9]|
1089                29
1090              )|
1091              3[0235-9]|
1092              7[2-7]
1093            )|
1094            3(?:
1095              3(?:
1096                0[1-467]|
1097                2[127-9]|
1098                3[124578]|
1099                7[1257-9]|
1100                8[1256]|
1101                9[145]
1102              )|
1103              4(?:
1104                2[135]|
1105                4[13578]|
1106                9[1346]
1107              )|
1108              5(?:
1109                0[14]|
1110                2[1-3589]|
1111                6[1-4]|
1112                7[13468]|
1113                8[13568]
1114              )|
1115              6(?:
1116                2[1-489]|
1117                3[124-6]|
1118                6[13]|
1119                7[12579]|
1120                8[1-356]|
1121                9[135]
1122              )|
1123              7(?:
1124                2[1-7]|
1125                4[145]|
1126                6[1-5]|
1127                7[1-4]
1128              )|
1129              8(?:
1130                21|
1131                6|
1132                7[1467]|
1133                8[136]
1134              )|
1135              9(?:
1136                0[12479]|
1137                2[1358]|
1138                4[134679]|
1139                6[1-9]|
1140                7[136]|
1141                8[147]
1142              )
1143            )|
1144            41|
1145            [56]0|
1146            7(?:
1147              0[2-8]|
1148              8[02-5]|
1149              9[03-7]
1150            )|
1151            8(?:
1152              3[02-46-9]|
1153              5[03-9]|
1154              6[2-8]|
1155              8[024-6]
1156            )|
1157            9(?:
1158              0[7-9]|
1159              7[02-467]
1160            )|
1161            (?:
1162              45|
1163              84
1164            )[02-6]|
1165            3(?:
1166              83|
1167              99
1168            )[1468]|
1169            3[68]4[1347]|
1170            3(?:
1171              47|
1172              60
1173            )[1356]|
1174            (?:
1175              66|
1176              71|
1177              80
1178            )[2-9]|
1179            3(?:
1180              3[46]|
1181              46|
1182              5[49]
1183            )[1246]|
1184            (?:
1185              22|
1186              47|
1187              81
1188            )[02-79]|
1189            3[4579]3[1357]|
1190            (?:
1191              28|
1192              49|
1193              5[79]|
1194              7[27]|
1195              9[589]
1196            )[02-7]|
1197            (?:
1198              2[569]|
1199              4[2-48]|
1200              5[124-6]|
1201              6[1-358]|
1202              73|
1203              82|
1204              9[1-4]
1205            )[02-9]|
1206            (?:
1207              24|
1208              [49]6|
1209              5[38]|
1210              6[47]|
1211              7[4-6]|
1212              87
1213            )[02-8]
1214          </leadingDigits>
1215          <format>$1 $2 $3 $4 $5 $6</format>
1216        </numberFormat>
1217        <!-- Sometimes four-digit area codes are split into two groups of two. -->
1218        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})">
1219          <leadingDigits>
1220            2(?:
1221              0[4-6]|
1222              1(?:
1223                [035-9]|
1224                29
1225              )|
1226              3[0235-9]|
1227              7[2-7]
1228            )|
1229            3(?:
1230              3(?:
1231                0[1-467]|
1232                2[127-9]|
1233                3[124578]|
1234                7[1257-9]|
1235                8[1256]|
1236                9[145]
1237              )|
1238              4(?:
1239                2[135]|
1240                4[13578]|
1241                9[1346]
1242              )|
1243              5(?:
1244                0[14]|
1245                2[1-3589]|
1246                6[1-4]|
1247                7[13468]|
1248                8[13568]
1249              )|
1250              6(?:
1251                2[1-489]|
1252                3[124-6]|
1253                6[13]|
1254                7[12579]|
1255                8[1-356]|
1256                9[135]
1257              )|
1258              7(?:
1259                2[1-7]|
1260                4[145]|
1261                6[1-5]|
1262                7[1-4]
1263              )|
1264              8(?:
1265                21|
1266                6|
1267                7[1467]|
1268                8[136]
1269              )|
1270              9(?:
1271                0[12479]|
1272                2[1358]|
1273                4[134679]|
1274                6[1-9]|
1275                7[136]|
1276                8[147]
1277              )
1278            )|
1279            41|
1280            7(?:
1281              8[02-5]|
1282              9[03-7]
1283            )|
1284            8(?:
1285              3[02-46-9]|
1286              5[03-9]|
1287              6[2-8]|
1288              8[024-6]
1289            )|
1290            9(?:
1291              0[7-9]|
1292              7[02-467]
1293            )|
1294            [5-7]0|
1295            (?:
1296              45|
1297              84
1298            )[02-6]|
1299            3(?:
1300              83|
1301              99
1302            )[1468]|
1303            3[68]4[1347]|
1304            3(?:
1305              47|
1306              60
1307            )[1356]|
1308            (?:
1309              66|
1310              71|
1311              80
1312            )[2-9]|
1313            3(?:
1314              3[46]|
1315              46|
1316              5[49]
1317            )[1246]|
1318            (?:
1319              22|
1320              47|
1321              81
1322            )[02-79]|
1323            3[4579]3[1357]|
1324            (?:
1325              28|
1326              49|
1327              5[79]|
1328              7[27]|
1329              9[589]
1330            )[02-7]|
1331            (?:
1332              2[569]|
1333              4[2-48]|
1334              5[124-6]|
1335              6[1-358]|
1336              73|
1337              82|
1338              9[1-4]
1339            )[02-9]|
1340            (?:
1341              24|
1342              [49]6|
1343              5[38]|
1344              6[47]|
1345              7[4-6]|
1346              87
1347            )[02-8]
1348          </leadingDigits>
1349          <format>$1 $2 $3 $4 $5 $6</format>
1350        </numberFormat>
1351        <numberFormat pattern="(\d{4})(\d{4})(\d{1,4})">
1352          <leadingDigits>
1353            2(?:
1354              0[4-6]|
1355              1(?:
1356                [035-9]|
1357                29
1358              )|
1359              3[0235-9]|
1360              7[2-7]
1361            )|
1362            3(?:
1363              3(?:
1364                0[1-467]|
1365                2[127-9]|
1366                3[124578]|
1367                7[1257-9]|
1368                8[1256]|
1369                9[145]
1370              )|
1371              4(?:
1372                2[135]|
1373                4[13578]|
1374                9[1346]
1375              )|
1376              5(?:
1377                0[14]|
1378                2[1-3589]|
1379                6[1-4]|
1380                7[13468]|
1381                8[13568]
1382              )|
1383              6(?:
1384                2[1-489]|
1385                3[124-6]|
1386                6[13]|
1387                7[12579]|
1388                8[1-356]|
1389                9[135]
1390              )|
1391              7(?:
1392                2[1-7]|
1393                4[145]|
1394                6[1-5]|
1395                7[1-4]
1396              )|
1397              8(?:
1398                21|
1399                6|
1400                7[1467]|
1401                8[136]
1402              )|
1403              9(?:
1404                0[12479]|
1405                2[1358]|
1406                4[134679]|
1407                6[1-9]|
1408                7[136]|
1409                8[147]
1410              )
1411            )|
1412            41|
1413            [56]0|
1414            7(?:
1415              0[2-8]|
1416              8[02-5]|
1417              9[03-7]
1418            )|
1419            8(?:
1420              3[02-46-9]|
1421              5[03-9]|
1422              6[2-8]|
1423              8[024-6]
1424            )|
1425            9(?:
1426              0[7-9]|
1427              7[02-467]
1428            )|
1429            (?:
1430              45|
1431              84
1432            )[02-6]|
1433            3(?:
1434              83|
1435              99
1436            )[1468]|
1437            3[68]4[1347]|
1438            3(?:
1439              47|
1440              60
1441            )[1356]|
1442            (?:
1443              66|
1444              71|
1445              80
1446            )[2-9]|
1447            3(?:
1448              3[46]|
1449              46|
1450              5[49]
1451            )[1246]|
1452            (?:
1453              22|
1454              47|
1455              81
1456            )[02-79]|
1457            3[4579]3[1357]|
1458            (?:
1459              28|
1460              49|
1461              5[79]|
1462              7[27]|
1463              9[589]
1464            )[02-7]|
1465            (?:
1466              2[569]|
1467              4[2-48]|
1468              5[124-6]|
1469              6[1-358]|
1470              73|
1471              82|
1472              9[1-4]
1473            )[02-9]|
1474            (?:
1475              24|
1476              [49]6|
1477              5[38]|
1478              6[47]|
1479              7[4-6]|
1480              87
1481            )[02-8]
1482          </leadingDigits>
1483          <format>$1 $2 $3</format>
1484        </numberFormat>
1485        <numberFormat pattern="(\d{4})(\d{3})(\d{3})(\d{3})">
1486          <leadingDigits>
1487            2(?:
1488              0[4-6]|
1489              1(?:
1490                [035-9]|
1491                29
1492              )|
1493              3[0235-9]|
1494              7[2-7]
1495            )|
1496            3(?:
1497              3(?:
1498                0[1-467]|
1499                2[127-9]|
1500                3[124578]|
1501                7[1257-9]|
1502                8[1256]|
1503                9[145]
1504              )|
1505              4(?:
1506                2[135]|
1507                4[13578]|
1508                9[1346]
1509              )|
1510              5(?:
1511                0[14]|
1512                2[1-3589]|
1513                6[1-4]|
1514                7[13468]|
1515                8[13568]
1516              )|
1517              6(?:
1518                2[1-489]|
1519                3[124-6]|
1520                6[13]|
1521                7[12579]|
1522                8[1-356]|
1523                9[135]
1524              )|
1525              7(?:
1526                2[1-7]|
1527                4[145]|
1528                6[1-5]|
1529                7[1-4]
1530              )|
1531              8(?:
1532                21|
1533                6|
1534                7[1467]|
1535                8[136]
1536              )|
1537              9(?:
1538                0[12479]|
1539                2[1358]|
1540                4[134679]|
1541                6[1-9]|
1542                7[136]|
1543                8[147]
1544              )
1545            )|
1546            4[19]|
1547            7(?:
1548              8[02-5]|
1549              9[03-7]
1550            )|
1551            8(?:
1552              3[02-46-9]|
1553              5[03-9]|
1554              6[2-8]|
1555              8[024-6]
1556            )|
1557            9(?:
1558              0[7-9]|
1559              7[02-467]
1560            )|
1561            [5-7]0|
1562            (?:
1563              45|
1564              84
1565            )[02-6]|
1566            3(?:
1567              83|
1568              99
1569            )[1468]|
1570            3[68]4[1347]|
1571            3(?:
1572              47|
1573              60
1574            )[1356]|
1575            (?:
1576              66|
1577              71|
1578              80
1579            )[2-9]|
1580            3(?:
1581              3[46]|
1582              46|
1583              5[49]
1584            )[1246]|
1585            (?:
1586              22|
1587              47|
1588              81
1589            )[02-79]|
1590            3[4579]3[1357]|
1591            (?:
1592              28|
1593              5[79]|
1594              7[27]|
1595              9[589]
1596            )[02-7]|
1597            (?:
1598              2[569]|
1599              4[2-48]|
1600              5[124-6]|
1601              6[1-358]|
1602              73|
1603              82|
1604              9[1-4]
1605            )[02-9]|
1606            (?:
1607              24|
1608              [49]6|
1609              5[38]|
1610              6[47]|
1611              7[4-6]|
1612              87
1613            )[02-8]
1614          </leadingDigits>
1615          <format>$1 $2 $3 $4</format>
1616        </numberFormat>
1617        <numberFormat pattern="(\d{4})(\d{2})(\d{3})(\d{2})">
1618          <leadingDigits>
1619            15[1279]|
1620            2(?:
1621              0[4-6]|
1622              1(?:
1623                [035-9]|
1624                29
1625              )|
1626              3[0235-9]|
1627              7[2-7]
1628            )|
1629            3(?:
1630              3(?:
1631                0[1-467]|
1632                2[127-9]|
1633                3[124578]|
1634                7[1257-9]|
1635                8[1256]|
1636                9[145]
1637              )|
1638              4(?:
1639                2[135]|
1640                4[13578]|
1641                9[1346]
1642              )|
1643              5(?:
1644                0[14]|
1645                2[1-3589]|
1646                6[1-4]|
1647                7[13468]|
1648                8[13568]
1649              )|
1650              6(?:
1651                2[1-489]|
1652                3[124-6]|
1653                6[13]|
1654                7[12579]|
1655                8[1-356]|
1656                9[135]
1657              )|
1658              7(?:
1659                2[1-7]|
1660                4[145]|
1661                6[1-5]|
1662                7[1-4]
1663              )|
1664              8(?:
1665                21|
1666                6|
1667                7[1467]|
1668                8[136]
1669              )|
1670              9(?:
1671                0[12479]|
1672                2[1358]|
1673                4[134679]|
1674                6[1-9]|
1675                7[136]|
1676                8[147]
1677              )
1678            )|
1679            41|
1680            [56]0|
1681            7(?:
1682              0[2-8]|
1683              8[02-5]|
1684              9[03-7]
1685            )|
1686            8(?:
1687              3[02-46-9]|
1688              5[03-9]|
1689              6[2-8]|
1690              8[024-6]
1691            )|
1692            9(?:
1693              0[7-9]|
1694              7[02-467]
1695            )|
1696            (?:
1697              45|
1698              84
1699            )[02-6]|
1700            3(?:
1701              83|
1702              99
1703            )[1468]|
1704            3[68]4[1347]|
1705            3(?:
1706              47|
1707              60
1708            )[1356]|
1709            (?:
1710              66|
1711              71|
1712              80
1713            )[2-9]|
1714            3(?:
1715              3[46]|
1716              46|
1717              5[49]
1718            )[1246]|
1719            (?:
1720              22|
1721              47|
1722              81
1723            )[02-79]|
1724            3[4579]3[1357]|
1725            (?:
1726              28|
1727              49|
1728              5[79]|
1729              7[27]|
1730              9[589]
1731            )[02-7]|
1732            (?:
1733              2[569]|
1734              4[2-48]|
1735              5[124-6]|
1736              6[1-358]|
1737              73|
1738              82|
1739              9[1-4]
1740            )[02-9]|
1741            (?:
1742              24|
1743              [49]6|
1744              5[38]|
1745              6[47]|
1746              7[4-6]|
1747              87
1748            )[02-8]
1749          </leadingDigits>
1750          <format>$1 $2 $3 $4</format>
1751        </numberFormat>
1752        <numberFormat pattern="(\d{4})(\d{3})(\d{2})(\d{2})">
1753          <leadingDigits>
1754            2(?:
1755              0[4-6]|
1756              1(?:
1757                [035-9]|
1758                29
1759              )|
1760              3[0235-9]|
1761              7[2-7]
1762            )|
1763            3(?:
1764              3(?:
1765                0[1-467]|
1766                2[127-9]|
1767                3[124578]|
1768                7[1257-9]|
1769                8[1256]|
1770                9[145]
1771              )|
1772              4(?:
1773                2[135]|
1774                4[13578]|
1775                9[1346]
1776              )|
1777              5(?:
1778                0[14]|
1779                2[1-3589]|
1780                6[1-4]|
1781                7[13468]|
1782                8[13568]
1783              )|
1784              6(?:
1785                2[1-489]|
1786                3[124-6]|
1787                6[13]|
1788                7[12579]|
1789                8[1-356]|
1790                9[135]
1791              )|
1792              7(?:
1793                2[1-7]|
1794                4[145]|
1795                6[1-5]|
1796                7[1-4]
1797              )|
1798              8(?:
1799                21|
1800                6|
1801                7[1467]|
1802                8[136]
1803              )|
1804              9(?:
1805                0[12479]|
1806                2[1358]|
1807                4[134679]|
1808                6[1-9]|
1809                7[136]|
1810                8[147]
1811              )
1812            )|
1813            41|
1814            [56]0|
1815            7(?:
1816              0[2-8]|
1817              8[02-5]|
1818              9[03-7]
1819            )|
1820            8(?:
1821              3[02-46-9]|
1822              5[03-9]|
1823              6[2-8]|
1824              8[024-6]
1825            )|
1826            9(?:
1827              0[7-9]|
1828              7[02-467]
1829            )|
1830            (?:
1831              45|
1832              84
1833            )[02-6]|
1834            3(?:
1835              83|
1836              99
1837            )[1468]|
1838            3[68]4[1347]|
1839            3(?:
1840              47|
1841              60
1842            )[1356]|
1843            (?:
1844              66|
1845              71|
1846              80
1847            )[2-9]|
1848            3(?:
1849              3[46]|
1850              46|
1851              5[49]
1852            )[1246]|
1853            (?:
1854              22|
1855              47|
1856              81
1857            )[02-79]|
1858            3[4579]3[1357]|
1859            (?:
1860              28|
1861              49|
1862              5[79]|
1863              7[27]|
1864              9[589]
1865            )[02-7]|
1866            (?:
1867              2[569]|
1868              4[2-48]|
1869              5[124-6]|
1870              6[1-358]|
1871              73|
1872              82|
1873              9[1-4]
1874            )[02-9]|
1875            (?:
1876              24|
1877              [49]6|
1878              5[38]|
1879              6[47]|
1880              7[4-6]|
1881              87
1882            )[02-8]
1883          </leadingDigits>
1884          <format>$1 $2 $3 $4</format>
1885        </numberFormat>
1886        <numberFormat pattern="(\d{4})(\d{2})(\d{2})(\d{2,3})">
1887          <leadingDigits>
1888            2(?:
1889              0[4-6]|
1890              1(?:
1891                [035-9]|
1892                29
1893              )|
1894              3[0235-9]|
1895              7[2-7]
1896            )|
1897            3(?:
1898              3(?:
1899                0[1-467]|
1900                2[127-9]|
1901                3[124578]|
1902                7[1257-9]|
1903                8[1256]|
1904                9[145]
1905              )|
1906              4(?:
1907                2[135]|
1908                4[13578]|
1909                9[1346]
1910              )|
1911              5(?:
1912                0[14]|
1913                2[1-3589]|
1914                6[1-4]|
1915                7[13468]|
1916                8[13568]
1917              )|
1918              6(?:
1919                2[1-489]|
1920                3[124-6]|
1921                6[13]|
1922                7[12579]|
1923                8[1-356]|
1924                9[135]
1925              )|
1926              7(?:
1927                2[1-7]|
1928                4[145]|
1929                6[1-5]|
1930                7[1-4]
1931              )|
1932              8(?:
1933                21|
1934                6|
1935                7[1467]|
1936                8[136]
1937              )|
1938              9(?:
1939                0[12479]|
1940                2[1358]|
1941                4[134679]|
1942                6[1-9]|
1943                7[136]|
1944                8[147]
1945              )
1946            )|
1947            41|
1948            [56]0|
1949            7(?:
1950              0[2-8]|
1951              8[02-5]|
1952              9[03-7]
1953            )|
1954            8(?:
1955              3[02-46-9]|
1956              5[03-9]|
1957              6[2-8]|
1958              8[024-6]
1959            )|
1960            9(?:
1961              0[7-9]|
1962              7[02-467]
1963            )|
1964            (?:
1965              45|
1966              84
1967            )[02-6]|
1968            3(?:
1969              83|
1970              99
1971            )[1468]|
1972            3[68]4[1347]|
1973            3(?:
1974              47|
1975              60
1976            )[1356]|
1977            (?:
1978              66|
1979              71|
1980              80
1981            )[2-9]|
1982            3(?:
1983              3[46]|
1984              46|
1985              5[49]
1986            )[1246]|
1987            (?:
1988              22|
1989              47|
1990              81
1991            )[02-79]|
1992            3[4579]3[1357]|
1993            (?:
1994              28|
1995              49|
1996              5[79]|
1997              7[27]|
1998              9[589]
1999            )[02-7]|
2000            (?:
2001              2[569]|
2002              4[2-48]|
2003              5[124-6]|
2004              6[1-358]|
2005              73|
2006              82|
2007              9[1-4]
2008            )[02-9]|
2009            (?:
2010              24|
2011              [49]6|
2012              5[38]|
2013              6[47]|
2014              7[4-6]|
2015              87
2016            )[02-8]
2017          </leadingDigits>
2018          <format>$1 $2 $3 $4</format>
2019        </numberFormat>
2020        <numberFormat pattern="(\d{5})(\d{3})(\d{3,4})">
2021          <leadingDigits>
2022            3(?:
2023              3(?:
2024                0[589]|
2025                2[03]|
2026                3[369]|
2027                4[357]|
2028                6[0357]|
2029                7[0346]|
2030                8[347]|
2031                9[236-8]
2032              )|
2033              4(?:
2034                4[2469]|
2035                6[03579]|
2036                9[0257]
2037              )|
2038              5(?:
2039                0[235]|
2040                2[046]|
2041                [49][357]|
2042                6[09]|
2043                7[2579]|
2044                8[2479]
2045              )|
2046              6(?:
2047                2[05]|
2048                3[37]|
2049                6[02459]|
2050                7[03468]|
2051                8[47]|
2052                9[246]
2053              )|
2054              7(?:
2055                2[09]|
2056                4[236]|
2057                60|
2058                75
2059              )|
2060              8(?:
2061                2[0239]|
2062                3[023579]|
2063                7[23589]|
2064                8[2457]
2065              )|
2066              9(?:
2067                0[03568]|
2068                3[24689]|
2069                4[0258]|
2070                60|
2071                7[2457]|
2072                8[23568]|
2073                9[23579]
2074              )
2075            )|
2076            3[68]4[2568]|
2077            3(?:
2078              47|
2079              60
2080            )[2478]|
2081            3[49]2[02469]|
2082            3[457]3[2468]
2083          </leadingDigits>
2084          <format>$1 $2 $3</format>
2085        </numberFormat>
2086        <numberFormat pattern="(\d{5})(\d{4})(\d{3,4})">
2087          <leadingDigits>
2088            3(?:
2089              3(?:
2090                0[589]|
2091                2[03]|
2092                3[369]|
2093                4[357]|
2094                6[0357]|
2095                7[0346]|
2096                8[347]|
2097                9[236-8]
2098              )|
2099              4(?:
2100                4[2469]|
2101                6[03579]|
2102                9[0257]
2103              )|
2104              5(?:
2105                0[235]|
2106                2[046]|
2107                [49][357]|
2108                6[09]|
2109                7[2579]|
2110                8[2479]
2111              )|
2112              6(?:
2113                2[05]|
2114                3[37]|
2115                6[02459]|
2116                7[03468]|
2117                8[47]|
2118                9[246]
2119              )|
2120              7(?:
2121                2[09]|
2122                4[236]|
2123                60|
2124                75
2125              )|
2126              8(?:
2127                2[0239]|
2128                3[023579]|
2129                7[23589]|
2130                8[2457]
2131              )|
2132              9(?:
2133                0[03568]|
2134                3[24689]|
2135                4[0258]|
2136                60|
2137                7[2457]|
2138                8[23568]|
2139                9[23579]
2140              )
2141            )|
2142            3[68]4[2568]|
2143            3(?:
2144              47|
2145              60
2146            )[2478]|
2147            3[49]2[02469]|
2148            3[457]3[2468]
2149          </leadingDigits>
2150          <format>$1 $2 $3</format>
2151        </numberFormat>
2152        <numberFormat pattern="(\d{5})(\d{3})(\d{3})(\d{3})">
2153          <leadingDigits>
2154            3(?:
2155              3(?:
2156                0[589]|
2157                2[03]|
2158                3[369]|
2159                4[357]|
2160                6[0357]|
2161                7[0346]|
2162                8[347]|
2163                9[236-8]
2164              )|
2165              4(?:
2166                4[2469]|
2167                6[03579]|
2168                9[0257]
2169              )|
2170              5(?:
2171                0[235]|
2172                2[046]|
2173                [49][357]|
2174                6[09]|
2175                7[2579]|
2176                8[2479]
2177              )|
2178              6(?:
2179                2[05]|
2180                3[37]|
2181                6[02459]|
2182                7[03468]|
2183                8[47]|
2184                9[246]
2185              )|
2186              7(?:
2187                2[09]|
2188                4[236]|
2189                60|
2190                75
2191              )|
2192              8(?:
2193                2[0239]|
2194                3[023579]|
2195                7[23589]|
2196                8[2457]
2197              )|
2198              9(?:
2199                0[03568]|
2200                3[24689]|
2201                4[0258]|
2202                60|
2203                7[2457]|
2204                8[23568]|
2205                9[23579]
2206              )
2207            )|
2208            3[68]4[2568]|
2209            3(?:
2210              47|
2211              60
2212            )[2478]|
2213            3[49]2[02469]|
2214            3[457]3[2468]
2215          </leadingDigits>
2216          <format>$1 $2 $3 $4</format>
2217        </numberFormat>
2218        <numberFormat pattern="(\d{4})(\d{3})(\d{4})">
2219          <leadingDigits>15[1279]</leadingDigits>
2220          <format>$1 $2 $3</format>
2221        </numberFormat>
2222        <numberFormat pattern="(\d{4})(\d{4})(\d{3})">
2223          <leadingDigits>15[1279]</leadingDigits>
2224          <format>$1 $2 $3</format>
2225        </numberFormat>
2226        <numberFormat pattern="(\d{3})(\d{8})">
2227          <leadingDigits>15[1279]</leadingDigits>
2228          <format>$1 $2</format>
2229        </numberFormat>
2230        <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{2})">
2231          <leadingDigits>15[1279]</leadingDigits>
2232          <format>$1 $2 $3 $4</format>
2233        </numberFormat>
2234        <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d)">
2235          <leadingDigits>
2236            1[67]|
2237            800
2238          </leadingDigits>
2239          <format>$1 $2 $3 $4</format>
2240        </numberFormat>
2241        <numberFormat pattern="(\d{3})(\d{2,3})(\d{3})(\d{2})">
2242          <leadingDigits>
2243            1[67]|
2244            800
2245          </leadingDigits>
2246          <format>$1 $2 $3 $4</format>
2247        </numberFormat>
2248        <numberFormat pattern="(\d{3})(\d{4})(\d{3})">
2249          <leadingDigits>800</leadingDigits>
2250          <format>$1 $2 $3</format>
2251        </numberFormat>
2252        <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2,3})">
2253          <leadingDigits>800</leadingDigits>
2254          <format>$1 $2 $3 $4</format>
2255        </numberFormat>
2256        <numberFormat pattern="(\d{3})(\d{6})(\d{2})(\d{1,4})">
2257          <leadingDigits>800</leadingDigits>
2258          <format>$1 $2 $3 $4</format>
2259        </numberFormat>
2260        <!-- Alternate format for premium rate numbers. -->
2261        <numberFormat pattern="(\d{3})(\d)(\d{3})(\d{3,4})">
2262          <leadingDigits>900</leadingDigits>
2263          <format>$1 $2 $3 $4</format>
2264        </numberFormat>
2265        <!-- Alternate format for premium rate numbers. -->
2266        <numberFormat pattern="(\d{3})(\d)(\d{4})(\d{3,4})">
2267          <leadingDigits>900</leadingDigits>
2268          <format>$1 $2 $3 $4</format>
2269        </numberFormat>
2270        <numberFormat pattern="(\d{3})(\d)(\d{3})(\d{3})">
2271          <leadingDigits>180</leadingDigits>
2272          <format>$1 $2 $3 $4</format>
2273        </numberFormat>
2274        <!-- Medium rate numbers often have the first group with four digits (180X) -->
2275        <numberFormat pattern="(\d{4})(\d{4,6})">
2276          <leadingDigits>180</leadingDigits>
2277          <format>$1 $2</format>
2278        </numberFormat>
2279        <numberFormat pattern="(\d{4})(\d{2})(\d{2})(\d{2})">
2280          <leadingDigits>180</leadingDigits>
2281          <format>$1 $2 $3 $4</format>
2282        </numberFormat>
2283        <!-- Alternate format for premium rate numbers. -->
2284        <numberFormat pattern="(\d{4})(\d{4,10})">
2285          <leadingDigits>900</leadingDigits>
2286          <format>$1 $2</format>
2287        </numberFormat>
2288      </availableFormats>
2289    </territory>
2290
2291    <!-- Estonia (EE) -->
2292    <territory countryCode="372">
2293      <availableFormats>
2294        <!-- There are about 2 million search results for numbers written with the 6 separate. -->
2295        <numberFormat pattern="(\d)(\d{3})(\d{3})">
2296          <leadingDigits>6</leadingDigits>
2297          <format>$1 $2 $3</format>
2298        </numberFormat>
2299        <!-- Some prefixes have been seen in this format too. -->
2300        <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
2301          <leadingDigits>[4-79]</leadingDigits>
2302          <format>$1 $2 $3</format>
2303        </numberFormat>
2304        <numberFormat pattern="(\d{2})(\d{3})(\d{2})">
2305          <leadingDigits>[4-79]</leadingDigits>
2306          <format>$1 $2 $3</format>
2307        </numberFormat>
2308      </availableFormats>
2309    </territory>
2310
2311    <!-- Spain (ES) -->
2312    <territory countryCode="34">
2313      <availableFormats>
2314        <!-- Common formatting pattern seen for all numbers -->
2315        <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
2316          <leadingDigits>
2317            [5-7]|
2318            80[367]|
2319            90[12]|
2320            [89][1-8]
2321          </leadingDigits>
2322          <format>$1 $2 $3</format>
2323        </numberFormat>
2324        <!-- Numbers starting with 9 are often formatted with a two-digit area code -->
2325        <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
2326          <leadingDigits>
2327            9(?:
2328              0[12]|
2329              [1-8]
2330            )
2331          </leadingDigits>
2332          <format>$1 $2 $3 $4</format>
2333        </numberFormat>
2334      </availableFormats>
2335    </territory>
2336
2337    <!-- Finland (FI) -->
2338    <territory countryCode="358">
2339      <availableFormats>
2340        <!-- Alternative format for one-digit prefix mid-length numbers. -->
2341        <numberFormat pattern="(\d)(\d{3})(\d{3,4})">
2342          <leadingDigits>
2343            [2568][1-8]|
2344            3(?:
2345              0[1-9]|
2346              [1-9]
2347            )|
2348            9
2349          </leadingDigits>
2350          <format>$1 $2 $3</format>
2351        </numberFormat>
2352        <!-- Alternative format for two-digit prefix mid-length numbers. -->
2353        <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})">
2354          <leadingDigits>
2355            [12]0[1-9]|
2356            4|
2357            1[3-9]|
2358            29|
2359            50|
2360            7[15]
2361          </leadingDigits>
2362          <format>$1 $2 $3</format>
2363        </numberFormat>
2364        <!-- Alternative format for one-digit prefix mid-length numbers. -->
2365        <numberFormat pattern="(\d)(\d{4})(\d{3})">
2366          <leadingDigits>
2367            [2568][1-8]|
2368            3(?:
2369              0[1-9]|
2370              [1-9]
2371            )|
2372            9
2373          </leadingDigits>
2374          <format>$1 $2 $3</format>
2375        </numberFormat>
2376      </availableFormats>
2377    </territory>
2378
2379    <!-- Fiji (FJ) -->
2380    <territory countryCode="679">
2381      <availableFormats>
2382        <numberFormat pattern="(\d{2})(\d{3})(\d{2})">
2383          <leadingDigits>7</leadingDigits>
2384          <format>$1 $2 $3</format>
2385        </numberFormat>
2386      </availableFormats>
2387    </territory>
2388
2389    <!-- United Kingdom (GB) -->
2390    <territory countryCode="44">
2391      <availableFormats>
2392        <!-- Historical London format before it moved to a two-digit area code -->
2393        <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
2394          <leadingDigits>20</leadingDigits>
2395          <format>$1 $2 $3</format>
2396        </numberFormat>
2397        <!-- Historical London format before it moved to a two-digit area code -->
2398        <numberFormat pattern="(\d{3})(\d{4})(\d{3})">
2399          <leadingDigits>
2400            1(?:
2401              1|
2402              [2-69]1
2403            )|
2404            20|
2405            [389]|
2406            7(?:
2407              [1-57-9]|
2408              624
2409            )
2410          </leadingDigits>
2411          <format>$1 $2 $3</format>
2412        </numberFormat>
2413        <!-- Commonly used London format -->
2414        <numberFormat pattern="(\d{2})(\d{4})(\d{2})(\d{2})">
2415          <leadingDigits>20</leadingDigits>
2416          <format>$1 $2 $3 $4</format>
2417        </numberFormat>
2418        <!-- UAN numbers beginning with 3 are also often formatted with a 4-digit first group (many search results) -->
2419        <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
2420          <leadingDigits>
2421            1(?:
2422              [2-69][02-9]|
2423              [78]
2424            )|
2425            3|
2426            7(?:
2427              [1-57-9]|
2428              624
2429            )
2430          </leadingDigits>
2431          <format>$1 $2 $3</format>
2432        </numberFormat>
2433        <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
2434          <leadingDigits>8</leadingDigits>
2435          <format>$1 $2 $3</format>
2436        </numberFormat>
2437      </availableFormats>
2438    </territory>
2439
2440    <!-- Georgia (GE) -->
2441    <territory countryCode="995">
2442      <availableFormats>
2443        <!-- Sometimes Tblisi numbers are formatted in a way to match formatting elsewhere in the country (3-digit first group) -->
2444        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
2445          <leadingDigits>32</leadingDigits>
2446          <format>$1 $2 $3 $4</format>
2447        </numberFormat>
2448        <!-- Variant for Tblisi formatting -->
2449        <numberFormat pattern="(\d{2})(\d)(\d{2})(\d{2})(\d{2})">
2450          <leadingDigits>32</leadingDigits>
2451          <format>$1 $2 $3 $4 $5</format>
2452        </numberFormat>
2453        <!-- * Sometimes Tblisi numbers are formatted in a way to match formatting elsewhere in the country (3-digit first group)
2454             * Sometimes the subscriber number is formatted in one groups of six digits -->
2455        <numberFormat pattern="(\d{3})(\d{6})">
2456          <leadingDigits>[348]</leadingDigits>
2457          <format>$1 $2</format>
2458        </numberFormat>
2459        <!-- * Sometimes Tblisi numbers are formatted in a way to match formatting elsewhere in the country (3-digit first group)
2460             * Sometimes the subscriber number is formatted in two groups of three digits -->
2461        <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
2462          <leadingDigits>[348]</leadingDigits>
2463          <format>$1 $2 $3</format>
2464        </numberFormat>
2465        <!-- Wikipedia variant for Tblisi formatting -->
2466        <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{2})">
2467          <leadingDigits>32</leadingDigits>
2468          <format>$1 $2 $3 $4</format>
2469        </numberFormat>
2470        <!-- Sometimes the area code is merged with the first group for Tblisi numbers -->
2471        <numberFormat pattern="(\d{5})(\d{2})(\d{2})">
2472          <leadingDigits>32</leadingDigits>
2473          <format>$1 $2 $3</format>
2474        </numberFormat>
2475      </availableFormats>
2476    </territory>
2477
2478    <!-- Gibraltar (GI) -->
2479    <territory countryCode="350">
2480      <availableFormats>
2481        <numberFormat pattern="(\d{4})(\d{4})">
2482          <leadingDigits>2</leadingDigits>
2483          <format>$1 $2</format>
2484        </numberFormat>
2485      </availableFormats>
2486    </territory>
2487
2488    <!-- Greece (GR) -->
2489    <territory countryCode="30">
2490      <availableFormats>
2491        <!-- Incorrect format for Athens, following the other cities which do have three-digit area codes. -->
2492        <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
2493          <leadingDigits>21</leadingDigits>
2494          <format>$1 $2 $3</format>
2495        </numberFormat>
2496      </availableFormats>
2497    </territory>
2498
2499    <!-- Croatia (HR) -->
2500    <territory countryCode="385">
2501      <availableFormats>
2502        <numberFormat pattern="(\d)(\d{3})(\d{4})">
2503          <leadingDigits>1</leadingDigits>
2504          <format>$1 $2 $3</format>
2505        </numberFormat>
2506        <numberFormat pattern="(\d)(\d{3})(\d{2})(\d{2})">
2507          <leadingDigits>1</leadingDigits>
2508          <format>$1 $2 $3 $4</format>
2509        </numberFormat>
2510        <numberFormat pattern="(\d{2})(\d{2})(\d{4})">
2511          <leadingDigits>[2-69]</leadingDigits>
2512          <format>$1 $2 $3</format>
2513        </numberFormat>
2514        <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
2515          <leadingDigits>6</leadingDigits>
2516          <format>$1 $2 $3</format>
2517        </numberFormat>
2518      </availableFormats>
2519    </territory>
2520
2521    <!-- Hungary (HU) -->
2522    <territory countryCode="36">
2523      <availableFormats>
2524        <!-- Local numbers are also often written 4-3 rather than 3-4. -->
2525        <numberFormat pattern="(\d)(\d{4})(\d{3})">
2526          <leadingDigits>1</leadingDigits>
2527          <format>$1 $2 $3</format>
2528        </numberFormat>
2529        <!-- Local numbers are also often written 4-3 rather than 3-4. -->
2530        <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
2531          <format>$1 $2 $3</format>
2532        </numberFormat>
2533      </availableFormats>
2534    </territory>
2535
2536    <!-- Indonesia (ID) -->
2537    <territory countryCode="62">
2538      <availableFormats>
2539        <numberFormat pattern="(\d{2})(\d{3,4})(\d{4})">
2540          <leadingDigits>
2541            2[124]|
2542            [36]1
2543          </leadingDigits>
2544          <format>$1 $2 $3</format>
2545        </numberFormat>
2546        <numberFormat pattern="(\d{2})(\d{3})(\d{5})">
2547          <leadingDigits>
2548            2[124]|
2549            [36]1
2550          </leadingDigits>
2551          <format>$1 $2 $3</format>
2552        </numberFormat>
2553        <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{3})">
2554          <leadingDigits>
2555            2[124]|
2556            [36]1
2557          </leadingDigits>
2558          <format>$1 $2 $3 $4</format>
2559        </numberFormat>
2560        <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
2561          <leadingDigits>8[1-35-9]</leadingDigits>
2562          <format>$1 $2 $3</format>
2563        </numberFormat>
2564        <numberFormat pattern="(\d{3})(\d{3})(\d{5,6})">
2565          <leadingDigits>8</leadingDigits>
2566          <format>$1 $2 $3</format>
2567        </numberFormat>
2568        <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{3})">
2569          <leadingDigits>8</leadingDigits>
2570          <format>$1 $2 $3 $4</format>
2571        </numberFormat>
2572      </availableFormats>
2573    </territory>
2574
2575    <!-- Israel (IL) -->
2576    <territory countryCode="972">
2577      <availableFormats>
2578        <numberFormat pattern="(\d)(\d{3})(\d{2})(\d{2})">
2579          <leadingDigits>[2-489]</leadingDigits>
2580          <format>$1 $2 $3 $4</format>
2581        </numberFormat>
2582      </availableFormats>
2583    </territory>
2584
2585    <!-- India (IN) -->
2586    <territory countryCode="91">
2587      <availableFormats>
2588        <!-- Mobile numbers. These are typically written XXXXX-XXXXX but other formats have
2589             been seen online. Some common ones are listed below. -->
2590        <numberFormat pattern="(\d{2})(\d{2})(\d{6})">
2591          <leadingDigits>
2592            6(?:
2593              [09]|
2594              2(?:
2595                [02-7]|
2596                8[0-35-9]
2597              )|
2598              5[02-689]|
2599              6[024-9]|
2600              8[124-9]
2601            )|
2602            7(?:
2603              [07]|
2604              3[025-9]|
2605              4[0-35689]|
2606              6(?:
2607                [02-9]|
2608                1[0-257-9]
2609              )|
2610              8[0-79]|
2611              9(?:
2612                [089]|
2613                31
2614              )
2615            )|
2616            8(?:
2617              0(?:
2618                [01589]|
2619                6[67]
2620              )|
2621              1[0-57-9]|
2622              2[235-9]|
2623              3[03-57-9]|
2624              [45]|
2625              6[02457-9]|
2626              7[1-69]|
2627              8(?:
2628                [0-25-9]|
2629                4[0147-9]
2630              )|
2631              9(?:
2632                [02-9]|
2633                1[0-27-9]
2634              )
2635            )|
2636            9|
2637            [67]1[013-9]|
2638            (?:
2639              67|
2640              72
2641            )[0235-9]|
2642            (?:
2643              63|
2644              75
2645            )[02-46-9]|
2646            6(?:
2647              29|
2648              35
2649            )[0-46-9]|
2650            (?:
2651              64|
2652              (?:
2653                79|
2654                80
2655              )7
2656            )[02-9]|
2657            (?:
2658              6(?:
2659                [2-4]1|
2660                5[17]|
2661                6[13]|
2662                7[14]|
2663                80
2664              )|
2665              7(?:
2666                12|
2667                88
2668              )
2669            )[0189]|
2670            (?:
2671              612|
2672              7(?:
2673                2[14]|
2674                3[134]|
2675                4[47]|
2676                5[15]
2677              )|
2678              8(?:
2679                16|
2680                2[014]|
2681                3[126]|
2682                6[136]|
2683                7[078]|
2684                83
2685              )
2686            )[017-9]
2687          </leadingDigits>
2688          <format>$1 $2 $3</format>
2689        </numberFormat>
2690        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})">
2691          <leadingDigits>
2692            6(?:
2693              [09]|
2694              2(?:
2695                [02-7]|
2696                8[0-35-9]
2697              )|
2698              5[02-689]|
2699              6[024-9]|
2700              8[124-9]
2701            )|
2702            7(?:
2703              [07]|
2704              3[025-9]|
2705              4[0-35689]|
2706              6(?:
2707                [02-9]|
2708                1[0-257-9]
2709              )|
2710              8[0-79]|
2711              9(?:
2712                [089]|
2713                31
2714              )
2715            )|
2716            8(?:
2717              0(?:
2718                [01589]|
2719                6[67]
2720              )|
2721              1[0-57-9]|
2722              2[235-9]|
2723              3[03-57-9]|
2724              [45]|
2725              6[02457-9]|
2726              7[1-69]|
2727              8(?:
2728                [0-25-9]|
2729                4[0147-9]
2730              )|
2731              9(?:
2732                [02-9]|
2733                1[0-27-9]
2734              )
2735            )|
2736            9|
2737            [67]1[013-9]|
2738            (?:
2739              67|
2740              72
2741            )[0235-9]|
2742            (?:
2743              63|
2744              75
2745            )[02-46-9]|
2746            6(?:
2747              29|
2748              35
2749            )[0-46-9]|
2750            (?:
2751              64|
2752              (?:
2753                79|
2754                80
2755              )7
2756            )[02-9]|
2757            (?:
2758              6(?:
2759                [2-4]1|
2760                5[17]|
2761                6[13]|
2762                7[14]|
2763                80
2764              )|
2765              7(?:
2766                12|
2767                88
2768              )
2769            )[0189]|
2770            (?:
2771              612|
2772              7(?:
2773                2[14]|
2774                3[134]|
2775                4[47]|
2776                5[15]
2777              )|
2778              8(?:
2779                16|
2780                2[014]|
2781                3[126]|
2782                6[136]|
2783                7[078]|
2784                83
2785              )
2786            )[017-9]
2787          </leadingDigits>
2788          <format>$1 $2 $3 $4 $5</format>
2789        </numberFormat>
2790        <!-- Two-digit area code fixed-line prefixes that may overlap with mobile, and hence may be formatted as
2791             XXXXX-XXXXX by default, instead of how they would be if they were recognised as
2792             geographical numbers. -->
2793        <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
2794          <leadingDigits>
2795            79(?:
2796              [089]|
2797              31|
2798              7[02-9]
2799            )|
2800            80(?:
2801              [01589]|
2802              6[67]|
2803              7[02-9]
2804            )
2805          </leadingDigits>
2806          <format>$1 $2 $3</format>
2807        </numberFormat>
2808        <!-- Three-digit area code fixed-line prefixes that may overlap with mobile, and hence may be formatted as
2809             XXXXX-XXXXX by default, instead of how they would be if they were recognised as
2810             geographical numbers. -->
2811        <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
2812          <leadingDigits>
2813            7(?:
2814              1[013-9]|
2815              2[0235-9]|
2816              3[025-9]|
2817              4[0-35689]|
2818              5[02-46-9]|
2819              6(?:
2820                [02-9]|
2821                1[0-257-9]
2822              )|
2823              7|
2824              8[0-79]
2825            )|
2826            8(?:
2827              1[0-57-9]|
2828              2[235-9]|
2829              3[03-57-9]|
2830              [45]|
2831              6[02457-9]|
2832              7[1-69]|
2833              8(?:
2834                [0-25-9]|
2835                4[0147-9]
2836              )|
2837              9(?:
2838                [02-9]|
2839                1[0-27-9]
2840              )
2841            )|
2842            7(?:
2843              12|
2844              88
2845            )[0189]|
2846            (?:
2847              7(?:
2848                2[14]|
2849                3[134]|
2850                4[47]|
2851                5[15]
2852              )|
2853              8(?:
2854                16|
2855                2[014]|
2856                3[126]|
2857                6[136]|
2858                7[078]|
2859                83
2860              )
2861            )[017-9]
2862          </leadingDigits>
2863          <format>$1 $2 $3</format>
2864        </numberFormat>
2865        <!-- Four-digit area code fixed-line prefixes that may overlap with mobile, and hence may be formatted as
2866             XXXXX-XXXXX by default, instead of how they would be if they were recognised as
2867             geographical numbers. -->
2868        <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
2869          <leadingDigits>
2870            7(?:
2871              1(?:
2872                [013-9]|
2873                2[0189]
2874              )|
2875              2[0235-9]|
2876              3[025-9]|
2877              4[0-35689]|
2878              5[02-46-9]|
2879              6(?:
2880                [02-9]|
2881                1[0-257-9]
2882              )|
2883              7
2884            )|
2885            80(?:
2886              [01589]|
2887              6[67]|
2888              7[02-9]
2889            )|
2890            7(?:
2891              2[14]|
2892              3[134]|
2893              4[47]|
2894              5[15]
2895            )[017-9]
2896          </leadingDigits>
2897          <format>$1 $2 $3</format>
2898        </numberFormat>
2899      </availableFormats>
2900    </territory>
2901
2902    <!-- Italy (IT) -->
2903    <territory countryCode="39">
2904      <availableFormats>
2905        <numberFormat pattern="(\d{4})(\d{2})(\d{2})(\d{2})">
2906          <leadingDigits>
2907            0(?:
2908              [13-579][2-46-8]|
2909              8[236-8]
2910            )
2911          </leadingDigits>
2912          <format>$1 $2 $3 $4</format>
2913        </numberFormat>
2914        <numberFormat pattern="(\d{4})(\d{2})(\d{3})">
2915          <leadingDigits>
2916            0(?:
2917              [13-579][2-46-8]|
2918              8[236-8]
2919            )
2920          </leadingDigits>
2921          <format>$1 $2 $3</format>
2922        </numberFormat>
2923      </availableFormats>
2924    </territory>
2925
2926    <!-- Japan (JP) -->
2927    <territory countryCode="81">
2928      <availableFormats>
2929        <!-- Toll-free, premium-rate and UAN numbers -->
2930        <numberFormat pattern="(\d{3})(\d{2})(\d{4})">
2931          <leadingDigits>
2932            (?:
2933              12|
2934              57|
2935              99
2936            )0
2937          </leadingDigits>
2938          <format>$1 $2 $3</format>
2939        </numberFormat>
2940        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
2941          <leadingDigits>
2942            (?:
2943              12|
2944              57|
2945              99
2946            )0
2947          </leadingDigits>
2948          <format>$1 $2 $3 $4</format>
2949        </numberFormat>
2950        <numberFormat pattern="(\d{3})(\d{4})(\d{2})">
2951          <leadingDigits>
2952            (?:
2953              12|
2954              57|
2955              99
2956            )0
2957          </leadingDigits>
2958          <format>$1 $2 $3</format>
2959        </numberFormat>
2960      </availableFormats>
2961    </territory>
2962
2963    <!-- Cambodia (KH) -->
2964    <territory countryCode="855">
2965      <availableFormats>
2966        <!-- Common alternative formatting for most number ranges -->
2967        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2,3})">
2968          <format>$1 $2 $3 $4</format>
2969        </numberFormat>
2970      </availableFormats>
2971    </territory>
2972
2973    <!-- Laos (LA) -->
2974    <territory countryCode="856">
2975      <availableFormats>
2976        <!-- Alternate widely-used patterns for mobile numbers. -->
2977        <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
2978          <format>$1 $2 $3</format>
2979        </numberFormat>
2980        <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
2981          <format>$1 $2 $3</format>
2982        </numberFormat>
2983        <numberFormat pattern="(\d{2})(\d{8})">
2984          <format>$1 $2</format>
2985        </numberFormat>
2986      </availableFormats>
2987    </territory>
2988
2989    <!-- Sri Lanka (LK) -->
2990    <territory countryCode="94">
2991      <availableFormats>
2992        <numberFormat pattern="(\d{2})(\d)(\d{6})">
2993          <leadingDigits>[1-689]</leadingDigits>
2994          <format>$1 $2 $3</format>
2995        </numberFormat>
2996        <numberFormat pattern="(\d{3})(\d{6})">
2997          <leadingDigits>[1-689]</leadingDigits>
2998          <format>$1 $2</format>
2999        </numberFormat>
3000        <!-- Alternate mobile format. -->
3001        <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
3002          <leadingDigits>7</leadingDigits>
3003          <format>$1 $2 $3</format>
3004        </numberFormat>
3005      </availableFormats>
3006    </territory>
3007
3008    <!-- Luxembourg (LU) -->
3009    <territory countryCode="352">
3010      <availableFormats>
3011        <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
3012          <leadingDigits>
3013            2(?:
3014              [0367]|
3015              4[3-8]
3016            )
3017          </leadingDigits>
3018          <format>$1 $2 $3</format>
3019        </numberFormat>
3020      </availableFormats>
3021    </territory>
3022
3023    <!-- Moldova (MD) -->
3024    <territory countryCode="373">
3025      <availableFormats>
3026        <!-- * Alternate format for two-digit prefixes
3027             * Alternate mobile format -->
3028        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
3029          <leadingDigits>
3030            22|
3031            [367]
3032          </leadingDigits>
3033          <format>$1 $2 $3 $4</format>
3034        </numberFormat>
3035        <!-- Alternate format for three-digit prefixes -->
3036        <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
3037          <leadingDigits>[67]</leadingDigits>
3038          <format>$1 $2 $3</format>
3039        </numberFormat>
3040      </availableFormats>
3041    </territory>
3042
3043    <!-- Myanmar (Burma) (MM) -->
3044    <territory countryCode="95">
3045      <availableFormats>
3046        <!-- Alternate mobile format. -->
3047        <numberFormat pattern="(\d)(\d{4})(\d{5})">
3048          <leadingDigits>92</leadingDigits>
3049          <format>$1 $2 $3</format>
3050        </numberFormat>
3051      </availableFormats>
3052    </territory>
3053
3054    <!-- Mexico (MX) -->
3055    <territory countryCode="52">
3056      <availableFormats>
3057        <!-- Alternate format for two-digit area codes. -->
3058        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})">
3059          <leadingDigits>
3060            33|
3061            5[56]|
3062            81
3063          </leadingDigits>
3064          <format>$1 $2 $3 $4 $5</format>
3065        </numberFormat>
3066        <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2})">
3067          <leadingDigits>
3068            [24679]|
3069            3[0-2457-9]|
3070            5[089]|
3071            8[02-46-9]
3072          </leadingDigits>
3073          <format>$1 $2 $3 $4</format>
3074        </numberFormat>
3075      </availableFormats>
3076    </territory>
3077
3078    <!-- Nicaragua (NI) -->
3079    <territory countryCode="505">
3080      <availableFormats>
3081        <!-- Alternate formatting for fixed-line ranges -->
3082        <numberFormat pattern="(\d)(\d{3})(\d{4})">
3083          <leadingDigits>2</leadingDigits>
3084          <format>$1 $2 $3</format>
3085        </numberFormat>
3086      </availableFormats>
3087    </territory>
3088
3089    <!-- Netherlands (NL) -->
3090    <territory countryCode="31">
3091      <availableFormats>
3092        <!-- Numbers with a two-digit area code are often written with the second and third group as 3-4 rather than 4-3 -->
3093        <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
3094          <leadingDigits>
3095            1[035]|
3096            2[0346]|
3097            3[03568]|
3098            4[0356]|
3099            5[0358]|
3100            7|
3101            8[4578]|
3102            91
3103          </leadingDigits>
3104          <format>$1 $2 $3</format>
3105        </numberFormat>
3106        <!-- Numbers with a three-digit area code are often written with the subscriber number as groups of two rather than three -->
3107        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})">
3108          <leadingDigits>
3109            1[16-8]|
3110            2[259]|
3111            3[124]|
3112            4[17-9]|
3113            5[124679]
3114          </leadingDigits>
3115          <format>$1 $2 $3 $4</format>
3116        </numberFormat>
3117      </availableFormats>
3118    </territory>
3119
3120    <!-- New Zealand (NZ) -->
3121    <territory countryCode="64">
3122      <availableFormats>
3123        <!-- Pattern for fixed-line formats excluding the Ross Dependency -->
3124        <numberFormat pattern="(\d)(\d{4})(\d{3})">
3125          <leadingDigits>
3126            [3467]|
3127            9[2-9]
3128          </leadingDigits>
3129          <format>$1 $2 $3</format>
3130        </numberFormat>
3131        <!-- Pattern for short premium-rate & toll-free numbers. -->
3132        <numberFormat pattern="(\d{3})(\d{3})(\d{2})">
3133          <leadingDigits>[89]0</leadingDigits>
3134          <format>$1 $2 $3</format>
3135        </numberFormat>
3136      </availableFormats>
3137    </territory>
3138
3139    <!-- Papua New Guinea (PG) -->
3140    <territory countryCode="675">
3141      <availableFormats>
3142        <numberFormat pattern="(\d{3})(\d{2})(\d{3})">
3143          <leadingDigits>7</leadingDigits>
3144          <format>$1 $2 $3</format>
3145        </numberFormat>
3146      </availableFormats>
3147    </territory>
3148
3149    <!-- Portugal (PT) -->
3150    <territory countryCode="351">
3151      <availableFormats>
3152        <!-- Lisbon/Porto numbers are usually formatted with the 21 or 22 separated - but sometimes they are formatted as 21X or 22X instead. -->
3153        <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
3154          <leadingDigits>2[12]</leadingDigits>
3155          <format>$1 $2 $3</format>
3156        </numberFormat>
3157        <!-- * Lisbon/Porto numbers.
3158             * Commonly used mobile formatting pattern. -->
3159        <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
3160          <leadingDigits>
3161            2[12]|
3162            9
3163          </leadingDigits>
3164          <format>$1 $2 $3 $4</format>
3165        </numberFormat>
3166        <!-- Commonly used mobile formatting pattern. -->
3167        <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
3168          <leadingDigits>9</leadingDigits>
3169          <format>$1 $2 $3</format>
3170        </numberFormat>
3171      </availableFormats>
3172    </territory>
3173
3174    <!-- Paraguay (PY) -->
3175    <territory countryCode="595">
3176      <availableFormats>
3177        <numberFormat pattern="(\d{2})(\d{2})(\d{3})">
3178          <leadingDigits>
3179            [26]1|
3180            3[289]|
3181            4[1246-8]|
3182            7[1-3]|
3183            8[1-36]
3184          </leadingDigits>
3185          <format>$1 $2 $3</format>
3186        </numberFormat>
3187        <numberFormat pattern="(\d{2})(\d{6,7})">
3188          <leadingDigits>
3189            2[14-68]|
3190            3[26-9]|
3191            4[1246-8]|
3192            6(?:
3193              1|
3194              75
3195            )|
3196            7[1-35]|
3197            8[1-36]
3198          </leadingDigits>
3199          <format>$1 $2</format>
3200        </numberFormat>
3201        <numberFormat pattern="(\d{3})(\d{6})">
3202          <leadingDigits>
3203            2[279]|
3204            3[13-5]|
3205            4[359]|
3206            5[1-5]|
3207            6(?:
3208              [34]|
3209              7[1-46-8]
3210            )|
3211            7[46-8]|
3212            85
3213          </leadingDigits>
3214          <format>$1 $2</format>
3215        </numberFormat>
3216      </availableFormats>
3217    </territory>
3218
3219    <!-- Serbia (RS) -->
3220    <territory countryCode="381">
3221      <availableFormats>
3222        <!-- * Alternate format for fixed-line numbers with a two-digit area code
3223             * Alternate format for mobile numbers -->
3224        <numberFormat pattern="(\d{2})(\d{3})(\d{3})">
3225          <leadingDigits>
3226            [16]|
3227            2[0-24-7]|
3228            3[0-8]|
3229            (?:
3230              2[389]|
3231              39
3232            )[2-9]
3233          </leadingDigits>
3234          <format>$1 $2 $3</format>
3235        </numberFormat>
3236        <!-- Alternate format for fixed-line numbers with a two-digit area code -->
3237        <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{3})">
3238          <leadingDigits>
3239            1|
3240            2[0-24-7]|
3241            3[0-8]|
3242            (?:
3243              2[389]|
3244              39
3245            )[2-9]
3246          </leadingDigits>
3247          <format>$1 $2 $3 $4</format>
3248        </numberFormat>
3249        <!-- Alternate format for mobile numbers -->
3250        <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
3251          <leadingDigits>6</leadingDigits>
3252          <format>$1 $2 $3 $4</format>
3253        </numberFormat>
3254      </availableFormats>
3255    </territory>
3256
3257    <!-- Russia (RU) -->
3258    <territory countryCode="7">
3259      <availableFormats>
3260        <!-- * Alternate KZ formatting (4-digit prefixes)
3261             * Russian numbers are sometimes formatted with a 4-digit prefix -->
3262        <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
3263          <leadingDigits>
3264            [3489]|
3265            7(?:
3266              1(?:
3267                [0-6]2|
3268                7|
3269                8[27]
3270              )|
3271              2(?:
3272                1[23]|
3273                [2-9]2
3274              )
3275            )
3276          </leadingDigits>
3277          <format>$1 $2 $3</format>
3278        </numberFormat>
3279        <!-- * Alternate KZ formatting (5-digit prefixes)
3280             * Russian numbers are sometimes formatted with a 5-digit prefix - this may in fact only apply to some prefixes, but we don't have a good understanding of which these are so err on the side of including all. -->
3281        <numberFormat pattern="(\d{5})(\d{5})">
3282          <leadingDigits>
3283            [3489]|
3284            7(?:
3285              1(?:
3286                [06][3-6]|
3287                [13-5][3-5]|
3288                2[35]|
3289                8[34]
3290              )|
3291              2(?:
3292                [1-38][3-5]|
3293                [49][35]|
3294                5[3-6]|
3295                6|
3296                7[457]
3297              )
3298            )
3299          </leadingDigits>
3300          <format>$1 $2</format>
3301        </numberFormat>
3302        <!-- Sometimes KZ numbers are formatted in the traditional RU way assuming 3-digit prefixes everywhere. -->
3303        <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2})">
3304          <leadingDigits>
3305            7(?:
3306              1|
3307              2(?:
3308                [1-689]|
3309                7[2457]
3310              )
3311            )
3312          </leadingDigits>
3313          <format>$1 $2 $3 $4</format>
3314        </numberFormat>
3315        <!-- Alternate formatting for 3-digit prefixes -->
3316        <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{3})">
3317          <leadingDigits>
3318            [3489]|
3319            7(?:
3320              [04-8]|
3321              1(?:
3322                04|
3323                [236]3|
3324                4[3-5]|
3325                5[34]
3326              )|
3327              2(?:
3328                13|
3329                34|
3330                7[39]
3331              )
3332            )
3333          </leadingDigits>
3334          <format>$1 $2 $3 $4</format>
3335        </numberFormat>
3336        <!-- Alternate formatting for 3-digit prefixes -->
3337        <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})(\d{2})">
3338          <leadingDigits>
3339            [3489]|
3340            7(?:
3341              [04-8]|
3342              1(?:
3343                04|
3344                [236]3|
3345                4[3-5]|
3346                5[34]
3347              )|
3348              2(?:
3349                13|
3350                34|
3351                7[39]
3352              )
3353            )
3354          </leadingDigits>
3355          <format>$1 $2 $3 $4 $5</format>
3356        </numberFormat>
3357        <!-- Russian numbers are sometimes formatted with a 4-digit prefix -->
3358        <numberFormat pattern="(\d{4})(\d{2})(\d{2})(\d{2})">
3359          <leadingDigits>[3489]</leadingDigits>
3360          <format>$1 $2 $3 $4</format>
3361        </numberFormat>
3362      </availableFormats>
3363    </territory>
3364
3365    <!-- Thailand (TH) -->
3366    <territory countryCode="66">
3367      <availableFormats>
3368        <!-- Over a million of the search results are formatted in two blocks like this. -->
3369        <numberFormat pattern="(\d{4})(\d{4})">
3370          <leadingDigits>2</leadingDigits>
3371          <format>$1 $2</format>
3372        </numberFormat>
3373      </availableFormats>
3374    </territory>
3375
3376    <!-- Tonga (TO) -->
3377    <territory countryCode="676">
3378      <availableFormats>
3379        <!-- Mobile numbers -->
3380        <numberFormat pattern="(\d{2})(\d{5})">
3381          <leadingDigits>[5-9]</leadingDigits>
3382          <format>$1 $2</format>
3383        </numberFormat>
3384      </availableFormats>
3385    </territory>
3386
3387    <!-- Turkey (TR) -->
3388    <territory countryCode="90">
3389      <availableFormats>
3390        <!-- Alternate format for fixed & mobile -->
3391        <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
3392          <leadingDigits>
3393            [2-4]|
3394            5(?:
3395              [02-69]|
3396              1[06]
3397            )
3398          </leadingDigits>
3399          <format>$1 $2 $3</format>
3400        </numberFormat>
3401        <!-- Alternate format for special-rate -->
3402        <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2})">
3403          <leadingDigits>
3404            512|
3405            [89]
3406          </leadingDigits>
3407          <format>$1 $2 $3 $4</format>
3408        </numberFormat>
3409      </availableFormats>
3410    </territory>
3411
3412    <!-- Tanzania (TZ) -->
3413    <territory countryCode="255">
3414      <availableFormats>
3415        <!-- A standard for mobile formatting is not well established and using two digits for the first group is very common. -->
3416        <numberFormat pattern="(\d{2})(\d{3})(\d{4})">
3417          <leadingDigits>[67]</leadingDigits>
3418          <format>$1 $2 $3</format>
3419        </numberFormat>
3420        <!-- A standard for mobile formatting is not well established and using two digits for the first group is very common. -->
3421        <numberFormat pattern="(\d{2})(\d{4})(\d{3})">
3422          <leadingDigits>[67]</leadingDigits>
3423          <format>$1 $2 $3</format>
3424        </numberFormat>
3425      </availableFormats>
3426    </territory>
3427
3428    <!-- Ukraine (UA) -->
3429    <territory countryCode="380">
3430      <availableFormats>
3431        <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})">
3432          <leadingDigits>
3433            4[45][0-5]|
3434            5(?:
3435              0|
3436              6(?:
3437                3[14-7]|
3438                7
3439              )
3440            )|
3441            6(?:
3442              [12][018]|
3443              [36-8]
3444            )|
3445            7|
3446            89|
3447            9[1-9]|
3448            (?:
3449              48|
3450              57
3451            )[0137-9]
3452          </leadingDigits>
3453          <format>$1 $2 $3 $4</format>
3454        </numberFormat>
3455        <!-- Less common but still sometimes used. -->
3456        <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{2})">
3457          <leadingDigits>
3458            4[45][0-5]|
3459            5(?:
3460              0|
3461              6(?:
3462                3[14-7]|
3463                7
3464              )
3465            )|
3466            6(?:
3467              [12][018]|
3468              [36-8]
3469            )|
3470            7|
3471            89|
3472            9[1-9]|
3473            (?:
3474              48|
3475              57
3476            )[0137-9]
3477          </leadingDigits>
3478          <format>$1 $2 $3 $4</format>
3479        </numberFormat>
3480      </availableFormats>
3481    </territory>
3482
3483    <!-- Venezuela (VE) -->
3484    <territory countryCode="58">
3485      <availableFormats>
3486        <numberFormat pattern="(\d{3})(\d{3})(\d{4})">
3487          <format>$1 $2 $3</format>
3488        </numberFormat>
3489      </availableFormats>
3490    </territory>
3491
3492    <!-- Vietnam (VN) -->
3493    <territory countryCode="84">
3494      <availableFormats>
3495        <!-- Alternate mobile format -->
3496        <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
3497          <leadingDigits>[69]</leadingDigits>
3498          <format>$1 $2 $3</format>
3499        </numberFormat>
3500        <!-- Alternate format for big cities. -->
3501        <numberFormat pattern="(\d{2})(\d{2})(\d{3})(\d{3})">
3502          <leadingDigits>2[48]</leadingDigits>
3503          <format>$1 $2 $3 $4</format>
3504        </numberFormat>
3505        <!-- Non-geographic numbers follow less rigid formatting patterns. -->
3506        <numberFormat pattern="(\d{4})(\d{3})(\d{3})">
3507          <leadingDigits>1</leadingDigits>
3508          <format>$1 $2 $3</format>
3509        </numberFormat>
3510      </availableFormats>
3511    </territory>
3512
3513    <!-- South Africa (ZA) -->
3514    <territory countryCode="27">
3515      <availableFormats>
3516        <!-- UAN & premium rate numbers starting with 86 often have a 3-digit first group too. -->
3517        <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
3518          <leadingDigits>86[1-9]</leadingDigits>
3519          <format>$1 $2 $3</format>
3520        </numberFormat>
3521      </availableFormats>
3522    </territory>
3523
3524  </territories>
3525</phoneNumberMetadata>
3526