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 ISO 3166-1 34 two-letter country codes. The country names in the comments are the official short names 35 in English according to ISO 3166-1. 36 37 For more information on what each element represents, see 38 resources/phonemetadata.proto 39 --> 40 41 <!DOCTYPE phoneNumberMetadata [ 42 <!ELEMENT phoneNumberMetadata (territories)> 43 <!ELEMENT territories (territory+)> 44 <!ELEMENT territory (availableFormats)> 45 <!ELEMENT numberFormat (leadingDigits*, format, intlFormat*)> 46 <!ELEMENT leadingDigits (#PCDATA)> 47 <!ELEMENT format (#PCDATA)> 48 <!ELEMENT intlFormat (#PCDATA)> 49 50 <!ATTLIST territory countryCode CDATA #REQUIRED> 51 <!ATTLIST numberFormat pattern CDATA #REQUIRED> 52 ]> 53 54 <phoneNumberMetadata> 55 <territories> 56 <!-- United Arab Emirates (AE) --> 57 <territory countryCode="971"> 58 <availableFormats> 59 <numberFormat pattern="(5[0256])(\d{4})(\d{3})"> 60 <leadingDigits>5</leadingDigits> 61 <format>$1 $2 $3</format> 62 </numberFormat> 63 </availableFormats> 64 </territory> 65 66 <!-- Australia (AU) --> 67 <territory countryCode="61"> 68 <availableFormats> 69 <numberFormat pattern="(1[389]\d{2})(\d{2})(\d{2})(\d{2})"> 70 <leadingDigits> 71 1(?: 72 [38]00| 73 90 74 ) 75 </leadingDigits> 76 <format>$1 $2 $3 $4</format> 77 </numberFormat> 78 <numberFormat pattern="(1[389]\d{2})(\d{6})"> 79 <leadingDigits> 80 1(?: 81 [38]00| 82 90 83 ) 84 </leadingDigits> 85 <format>$1 $2</format> 86 </numberFormat> 87 <numberFormat pattern="(1)([389]\d{2})(\d{3})(\d{3})"> 88 <leadingDigits> 89 1(?: 90 [38]00| 91 90 92 ) 93 </leadingDigits> 94 <format>$1 $2 $3 $4</format> 95 </numberFormat> 96 <numberFormat pattern="([2378])(\d{8})"> 97 <leadingDigits>[2378]</leadingDigits> 98 <format>$1 $2</format> 99 </numberFormat> 100 </availableFormats> 101 </territory> 102 103 <!-- Austria (AT) --> 104 <territory countryCode="43"> 105 <availableFormats> 106 <numberFormat pattern="(5)(\d{3,12})"> 107 <leadingDigits>5[079]</leadingDigits> 108 <format>$1 $2</format> 109 </numberFormat> 110 <numberFormat pattern="(50)(\d{2})(\d{2})(\d{2,4})"> 111 <leadingDigits>50</leadingDigits> 112 <format>$1 $2 $3 $4</format> 113 </numberFormat> 114 <numberFormat pattern="(5\d)(\d{2})(\d{2})(\d{2})(\d{2,4})"> 115 <leadingDigits>5[079]</leadingDigits> 116 <format>$1 $2 $3 $4 $5</format> 117 </numberFormat> 118 <numberFormat pattern="(5\d)(\d{5})(\d{4,6})"> 119 <leadingDigits>5[079]</leadingDigits> 120 <format>$1 $2 $3</format> 121 </numberFormat> 122 <numberFormat pattern="(5\d)(\d{6,7})"> 123 <leadingDigits>5[079]</leadingDigits> 124 <format>$1 $2</format> 125 </numberFormat> 126 <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2,3})"> 127 <leadingDigits> 128 316| 129 46| 130 51| 131 732| 132 6(?: 133 44| 134 5[0-3579]| 135 [6-9] 136 )| 137 7(?: 138 1| 139 [28]0 140 )| 141 [89] 142 </leadingDigits> 143 <format>$1 $2 $3 $4</format> 144 </numberFormat> 145 </availableFormats> 146 </territory> 147 148 <!-- Bulgaria (BG) --> 149 <territory countryCode="359"> 150 <availableFormats> 151 <numberFormat pattern="(\d)(\d{3})(\d{2})(\d{2})"> 152 <leadingDigits>2</leadingDigits> 153 <format>$1 $2 $3 $4</format> 154 </numberFormat> 155 <numberFormat pattern="(\d{3})(\d{3})(\d{3})"> 156 <leadingDigits> 157 48| 158 8[7-9]| 159 9[08] 160 </leadingDigits> 161 <format>$1 $2 $3</format> 162 </numberFormat> 163 <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"> 164 <leadingDigits> 165 48| 166 8[7-9]| 167 9[08] 168 </leadingDigits> 169 <format>$1 $2 $3 $4</format> 170 </numberFormat> 171 </availableFormats> 172 </territory> 173 174 <!-- Brazil (BR) --> 175 <territory countryCode="55"> 176 <availableFormats> 177 <numberFormat pattern="(\d{2})(\d{8})" > 178 <leadingDigits>[1-9][1-9]</leadingDigits> 179 <format>$1 $2</format> 180 </numberFormat> 181 </availableFormats> 182 </territory> 183 184 <!-- Belarus (BY) --> 185 <territory countryCode="375"> 186 <availableFormats> 187 <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})"> 188 <leadingDigits>[1-4]</leadingDigits> 189 <format>$1 $2 $3 $4</format> 190 </numberFormat> 191 </availableFormats> 192 </territory> 193 194 <!-- Germany (DE) --> 195 <territory countryCode="49"> 196 <availableFormats> 197 <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})"> 198 <leadingDigits> 199 3[02]| 200 40| 201 [68]9 202 </leadingDigits> 203 <format>$1/$2 $3</format> 204 </numberFormat> 205 <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})"> 206 <leadingDigits> 207 3[02]| 208 40| 209 [68]9 210 </leadingDigits> 211 <format>$1/$2 $3 $4 $5</format> 212 </numberFormat> 213 <numberFormat pattern="(\d{2})(\d{4})(\d{3,4})"> 214 <leadingDigits> 215 3[02]| 216 40| 217 [68]9 218 </leadingDigits> 219 <format>$1/$2 $3</format> 220 </numberFormat> 221 <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{1,2})"> 222 <leadingDigits> 223 3[02]| 224 40| 225 [68]9 226 </leadingDigits> 227 <format>$1/$2 $3 $4</format> 228 </numberFormat> 229 <numberFormat pattern="(\d{2})(\d{3})(\d{3})(\d{2,3})"> 230 <leadingDigits> 231 3[02]| 232 40| 233 [68]9 234 </leadingDigits> 235 <format>$1/$2 $3 $4</format> 236 </numberFormat> 237 <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d)(\d{2})(\d{2})"> 238 <leadingDigits> 239 3[02]| 240 40| 241 [68]9 242 </leadingDigits> 243 <format>$1/$2 $3 $4 $5 $6</format> 244 </numberFormat> 245 <!-- 3 digit area codes. --> 246 <numberFormat pattern="(\d{3})(\d{3})(\d{2,4})"> 247 <leadingDigits> 248 2(?: 249 \d1| 250 0[2389]| 251 1[24]| 252 28| 253 34 254 )| 255 3(?: 256 [3-9][15]| 257 40 258 )| 259 [4-8][1-9]1| 260 9(?: 261 06| 262 [1-9]1 263 ) 264 </leadingDigits> 265 <format>$1/$2 $3</format> 266 </numberFormat> 267 <numberFormat pattern="(\d{3})(\d{4})(\d{3,4})"> 268 <leadingDigits> 269 2(?: 270 \d1| 271 0[2389]| 272 1[24]| 273 28| 274 34 275 )| 276 3(?: 277 [3-9][15]| 278 40 279 )| 280 [4-8][1-9]1| 281 9(?: 282 06| 283 [1-9]1 284 ) 285 </leadingDigits> 286 <format>$1/$2 $3</format> 287 </numberFormat> 288 <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{1,2})"> 289 <leadingDigits> 290 2(?: 291 \d1| 292 0[2389]| 293 1[24]| 294 28| 295 34 296 )| 297 3(?: 298 [3-9][15]| 299 40 300 )| 301 [4-8][1-9]1| 302 9(?: 303 06| 304 [1-9]1 305 ) 306 </leadingDigits> 307 <format>$1/$2 $3 $4</format> 308 </numberFormat> 309 <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})(\d{2})"> 310 <leadingDigits> 311 2(?: 312 \d1| 313 0[2389]| 314 1[24]| 315 28| 316 34 317 )| 318 3(?: 319 [3-9][15]| 320 40 321 )| 322 [4-8][1-9]1| 323 9(?: 324 06| 325 [1-9]1 326 ) 327 </leadingDigits> 328 <format>$1/$2 $3 $4 $5</format> 329 </numberFormat> 330 <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2})"> 331 <leadingDigits> 332 2(?: 333 \d1| 334 0[2389]| 335 1[24]| 336 28| 337 34 338 )| 339 3(?: 340 [3-9][15]| 341 40 342 )| 343 [4-8][1-9]1| 344 9(?: 345 06| 346 [1-9]1 347 ) 348 </leadingDigits> 349 <format>$1/$2 $3 $4</format> 350 </numberFormat> 351 <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2})(\d)"> 352 <leadingDigits> 353 2(?: 354 \d1| 355 0[2389]| 356 1[24]| 357 28| 358 34 359 )| 360 3(?: 361 [3-9][15]| 362 40 363 )| 364 [4-8][1-9]1| 365 9(?: 366 06| 367 [1-9]1 368 ) 369 </leadingDigits> 370 <format>$1/$2 $3 $4 $5</format> 371 </numberFormat> 372 <numberFormat pattern="(\d{3})(\d{3})(\d{3})(\d{2,3})"> 373 <leadingDigits> 374 2(?: 375 \d1| 376 0[2389]| 377 1[24]| 378 28| 379 34 380 )| 381 3(?: 382 [3-9][15]| 383 40 384 )| 385 [4-8][1-9]1| 386 9(?: 387 06| 388 [1-9]1 389 ) 390 </leadingDigits> 391 <format>$1/$2 $3 $4</format> 392 </numberFormat> 393 <!-- 4 digit area codes. --> 394 <numberFormat pattern="(\d{4})(\d{3})(\d{1,4})"> 395 <leadingDigits> 396 [24-6]| 397 [7-9](?: 398 \d[1-9]| 399 [1-9]\d 400 )| 401 3(?: 402 3(?: 403 0[1-467]| 404 2[127-9]| 405 3[124578]| 406 [46][1246]| 407 7[1257-9]| 408 8[1256]| 409 9[145] 410 )| 411 4(?: 412 2[135]| 413 3[1357]| 414 4[13578]| 415 6[1246]| 416 7[1356]| 417 9[1346] 418 )| 419 5(?: 420 0[14]| 421 2[1-3589]| 422 3[1357]| 423 4[1246]| 424 6[1-4]| 425 7[1346]| 426 8[13568]| 427 9[1246] 428 )| 429 6(?: 430 0[356]| 431 2[1-489]| 432 3[124-6]| 433 4[1347]| 434 6[13]| 435 7[12579]| 436 8[1-356]| 437 9[135] 438 )| 439 7(?: 440 2[1-7]| 441 3[1357]| 442 4[145]| 443 6[1-5]| 444 7[1-4] 445 )| 446 8(?: 447 21| 448 3[1468]| 449 4[1347]| 450 6[0135-9]| 451 7[1467]| 452 8[136] 453 )| 454 9(?: 455 0[12479]| 456 2[1358]| 457 3[1357]| 458 4[134679]| 459 6[1-9]| 460 7[136]| 461 8[147]| 462 9[1468] 463 ) 464 ) 465 </leadingDigits> 466 <format>$1/$2 $3</format> 467 </numberFormat> 468 <numberFormat pattern="(\d{4})(\d{4})(\d{1,4})"> 469 <leadingDigits> 470 [24-6]| 471 [7-9](?: 472 \d[1-9]| 473 [1-9]\d 474 )| 475 3(?: 476 3(?: 477 0[1-467]| 478 2[127-9]| 479 3[124578]| 480 [46][1246]| 481 7[1257-9]| 482 8[1256]| 483 9[145] 484 )| 485 4(?: 486 2[135]| 487 3[1357]| 488 4[13578]| 489 6[1246]| 490 7[1356]| 491 9[1346] 492 )| 493 5(?: 494 0[14]| 495 2[1-3589]| 496 3[1357]| 497 4[1246]| 498 6[1-4]| 499 7[1346]| 500 8[13568]| 501 9[1246] 502 )| 503 6(?: 504 0[356]| 505 2[1-489]| 506 3[124-6]| 507 4[1347]| 508 6[13]| 509 7[12579]| 510 8[1-356]| 511 9[135] 512 )| 513 7(?: 514 2[1-7]| 515 3[1357]| 516 4[145]| 517 6[1-5]| 518 7[1-4] 519 )| 520 8(?: 521 21| 522 3[1468]| 523 4[1347]| 524 6[0135-9]| 525 7[1467]| 526 8[136] 527 )| 528 9(?: 529 0[12479]| 530 2[1358]| 531 3[1357]| 532 4[134679]| 533 6[1-9]| 534 7[136]| 535 8[147]| 536 9[1468] 537 ) 538 ) 539 </leadingDigits> 540 <format>$1/$2 $3</format> 541 </numberFormat> 542 <numberFormat pattern="(\d{4})(\d{3})(\d{3})(\d{3})"> 543 <leadingDigits> 544 [24-6]| 545 [7-9](?: 546 \d[1-9]| 547 [1-9]\d 548 )| 549 3(?: 550 3(?: 551 0[1-467]| 552 2[127-9]| 553 3[124578]| 554 [46][1246]| 555 7[1257-9]| 556 8[1256]| 557 9[145] 558 )| 559 4(?: 560 2[135]| 561 3[1357]| 562 4[13578]| 563 6[1246]| 564 7[1356]| 565 9[1346] 566 )| 567 5(?: 568 0[14]| 569 2[1-3589]| 570 3[1357]| 571 4[1246]| 572 6[1-4]| 573 7[1346]| 574 8[13568]| 575 9[1246] 576 )| 577 6(?: 578 0[356]| 579 2[1-489]| 580 3[124-6]| 581 4[1347]| 582 6[13]| 583 7[12579]| 584 8[1-356]| 585 9[135] 586 )| 587 7(?: 588 2[1-7]| 589 3[1357]| 590 4[145]| 591 6[1-5]| 592 7[1-4] 593 )| 594 8(?: 595 21| 596 3[1468]| 597 4[1347]| 598 6[0135-9]| 599 7[1467]| 600 8[136] 601 )| 602 9(?: 603 0[12479]| 604 2[1358]| 605 3[1357]| 606 4[134679]| 607 6[1-9]| 608 7[136]| 609 8[147]| 610 9[1468] 611 ) 612 ) 613 </leadingDigits> 614 <format>$1/$2 $3 $4</format> 615 </numberFormat> 616 <numberFormat pattern="(\d{4})(\d{2})(\d{3})(\d{2})"> 617 <leadingDigits> 618 [24-6]| 619 [7-9](?: 620 \d[1-9]| 621 [1-9]\d 622 )| 623 3(?: 624 3(?: 625 0[1-467]| 626 2[127-9]| 627 3[124578]| 628 [46][1246]| 629 7[1257-9]| 630 8[1256]| 631 9[145] 632 )| 633 4(?: 634 2[135]| 635 3[1357]| 636 4[13578]| 637 6[1246]| 638 7[1356]| 639 9[1346] 640 )| 641 5(?: 642 0[14]| 643 2[1-3589]| 644 3[1357]| 645 4[1246]| 646 6[1-4]| 647 7[1346]| 648 8[13568]| 649 9[1246] 650 )| 651 6(?: 652 0[356]| 653 2[1-489]| 654 3[124-6]| 655 4[1347]| 656 6[13]| 657 7[12579]| 658 8[1-356]| 659 9[135] 660 )| 661 7(?: 662 2[1-7]| 663 3[1357]| 664 4[145]| 665 6[1-5]| 666 7[1-4] 667 )| 668 8(?: 669 21| 670 3[1468]| 671 4[1347]| 672 6[0135-9]| 673 7[1467]| 674 8[136] 675 )| 676 9(?: 677 0[12479]| 678 2[1358]| 679 3[1357]| 680 4[134679]| 681 6[1-9]| 682 7[136]| 683 8[147]| 684 9[1468] 685 ) 686 ) 687 </leadingDigits> 688 <format>$1/$2 $3 $4</format> 689 </numberFormat> 690 <numberFormat pattern="(\d{4})(\d{3})(\d{2})(\d{2})"> 691 <leadingDigits> 692 [24-6]| 693 [7-9](?: 694 \d[1-9]| 695 [1-9]\d 696 )| 697 3(?: 698 3(?: 699 0[1-467]| 700 2[127-9]| 701 3[124578]| 702 [46][1246]| 703 7[1257-9]| 704 8[1256]| 705 9[145] 706 )| 707 4(?: 708 2[135]| 709 3[1357]| 710 4[13578]| 711 6[1246]| 712 7[1356]| 713 9[1346] 714 )| 715 5(?: 716 0[14]| 717 2[1-3589]| 718 3[1357]| 719 4[1246]| 720 6[1-4]| 721 7[1346]| 722 8[13568]| 723 9[1246] 724 )| 725 6(?: 726 0[356]| 727 2[1-489]| 728 3[124-6]| 729 4[1347]| 730 6[13]| 731 7[12579]| 732 8[1-356]| 733 9[135] 734 )| 735 7(?: 736 2[1-7]| 737 3[1357]| 738 4[145]| 739 6[1-5]| 740 7[1-4] 741 )| 742 8(?: 743 21| 744 3[1468]| 745 4[1347]| 746 6[0135-9]| 747 7[1467]| 748 8[136] 749 )| 750 9(?: 751 0[12479]| 752 2[1358]| 753 3[1357]| 754 4[134679]| 755 6[1-9]| 756 7[136]| 757 8[147]| 758 9[1468] 759 ) 760 ) 761 </leadingDigits> 762 <format>$1/$2 $3 $4</format> 763 </numberFormat> 764 <numberFormat pattern="(\d{4})(\d{2})(\d{2})(\d{2,3})"> 765 <leadingDigits> 766 [24-6]| 767 [7-9](?: 768 \d[1-9]| 769 [1-9]\d 770 )| 771 3(?: 772 3(?: 773 0[1-467]| 774 2[127-9]| 775 3[124578]| 776 [46][1246]| 777 7[1257-9]| 778 8[1256]| 779 9[145] 780 )| 781 4(?: 782 2[135]| 783 3[1357]| 784 4[13578]| 785 6[1246]| 786 7[1356]| 787 9[1346] 788 )| 789 5(?: 790 0[14]| 791 2[1-3589]| 792 3[1357]| 793 4[1246]| 794 6[1-4]| 795 7[1346]| 796 8[13568]| 797 9[1246] 798 )| 799 6(?: 800 0[356]| 801 2[1-489]| 802 3[124-6]| 803 4[1347]| 804 6[13]| 805 7[12579]| 806 8[1-356]| 807 9[135] 808 )| 809 7(?: 810 2[1-7]| 811 3[1357]| 812 4[145]| 813 6[1-5]| 814 7[1-4] 815 )| 816 8(?: 817 21| 818 3[1468]| 819 4[1347]| 820 6[0135-9]| 821 7[1467]| 822 8[136] 823 )| 824 9(?: 825 0[12479]| 826 2[1358]| 827 3[1357]| 828 4[134679]| 829 6[1-9]| 830 7[136]| 831 8[147]| 832 9[1468] 833 ) 834 ) 835 </leadingDigits> 836 <format>$1/$2 $3 $4</format> 837 </numberFormat> 838 <!-- 5 digit area codes. --> 839 <numberFormat pattern="(\d{5})(\d{3})(\d{3,4})"> 840 <leadingDigits>3</leadingDigits> 841 <format>$1/$2 $3</format> 842 </numberFormat> 843 <numberFormat pattern="(\d{5})(\d{4})(\d{3,4})"> 844 <leadingDigits>3</leadingDigits> 845 <format>$1/$2 $3</format> 846 </numberFormat> 847 <numberFormat pattern="(\d{5})(\d{3})(\d{3})(\d{3})"> 848 <leadingDigits>3</leadingDigits> 849 <format>$1/$2 $3 $4</format> 850 </numberFormat> 851 <!-- Mobile number formatting rules. --> 852 <numberFormat pattern="(1\d{3})(\d{2})(\d{3})(\d{2})"> 853 <leadingDigits>15</leadingDigits> 854 <format>$1 $2 $3 $4</format> 855 </numberFormat> 856 <numberFormat pattern="(1\d{3})(\d{3})(\d{4})"> 857 <leadingDigits>15</leadingDigits> 858 <format>$1 $2 $3</format> 859 </numberFormat> 860 <numberFormat pattern="(1\d{3})(\d{4})(\d{3})"> 861 <leadingDigits>15</leadingDigits> 862 <format>$1 $2 $3</format> 863 </numberFormat> 864 <numberFormat pattern="(1\d{2})(\d{8})"> 865 <leadingDigits>15</leadingDigits> 866 <format>$1 $2</format> 867 </numberFormat> 868 <numberFormat pattern="([18]\d{2})(\d{2,3})(\d{3})(\d{2})"> 869 <leadingDigits> 870 1[5-7]| 871 800 872 </leadingDigits> 873 <format>$1 $2 $3 $4</format> 874 </numberFormat> 875 <numberFormat pattern="([18]\d{2})(\d{3})(\d{3})(\d)"> 876 <leadingDigits> 877 1[5-7]| 878 800 879 </leadingDigits> 880 <format>$1 $2 $3 $4</format> 881 </numberFormat> 882 <numberFormat pattern="(8\d{2})(\d{6})(\d{2})(\d{1,4})"> 883 <leadingDigits>800</leadingDigits> 884 <format>$1 $2 $3 $4</format> 885 </numberFormat> 886 <numberFormat pattern="(\d{3})(\d)(\d{3})(\d{3,4})"> 887 <leadingDigits> 888 180| 889 900[1359] 890 </leadingDigits> 891 <format>$1 $2 $3 $4</format> 892 </numberFormat> 893 <numberFormat pattern="(\d{3})(\d)(\d{4})(\d{3,4})"> 894 <leadingDigits> 895 180| 896 900[1359] 897 </leadingDigits> 898 <format>$1 $2 $3 $4</format> 899 </numberFormat> 900 <numberFormat pattern="(\d{4})(\d{4,10})"> 901 <leadingDigits> 902 180| 903 900[1359] 904 </leadingDigits> 905 <format>$1 $2</format> 906 </numberFormat> 907 <numberFormat pattern="(\d{3})(\d{3})(\d{4})(\d{2})"> 908 <leadingDigits> 909 900[1359] 910 </leadingDigits> 911 <format>$1 $2 $3 $4</format> 912 </numberFormat> 913 </availableFormats> 914 </territory> 915 916 <!-- Estonia (EE) --> 917 <territory countryCode="372"> 918 <availableFormats> 919 <!-- There are about 2 million search results for numbers written with the 6 separate. --> 920 <numberFormat pattern="(\d)(\d{3})(\d{3})"> 921 <leadingDigits>6</leadingDigits> 922 <format>$1 $2 $3</format> 923 </numberFormat> 924 <numberFormat pattern="(\d{2})(\d{2})(\d{3})"> 925 <leadingDigits> 926 [69]| 927 4[3-8]| 928 5(?: 929 [02]| 930 1(?: 931 [0-8]| 932 95 933 )| 934 5[0-478]| 935 6(?: 936 4[0-4]| 937 5[1-589] 938 ) 939 )| 940 7[1-9] 941 </leadingDigits> 942 <format>$1 $2 $3</format> 943 </numberFormat> 944 <numberFormat pattern="(\d{2})(\d{3})(\d{2})"> 945 <leadingDigits> 946 [69]| 947 4[3-8]| 948 5(?: 949 [02]| 950 1(?: 951 [0-8]| 952 95 953 )| 954 5[0-478]| 955 6(?: 956 4[0-4]| 957 5[1-589] 958 ) 959 )| 960 7[1-9] 961 </leadingDigits> 962 <format>$1 $2 $3</format> 963 </numberFormat> 964 </availableFormats> 965 </territory> 966 967 <!-- Spain (ES) --> 968 <territory countryCode="34" > 969 <availableFormats> 970 <numberFormat pattern="([5-9]\d{2})(\d{3})(\d{3})"> 971 <format>$1 $2 $3</format> 972 </numberFormat> 973 <numberFormat pattern="(9\d)(\d{3})(\d{2})(\d{2})"> 974 <format>$1 $2 $3 $4</format> 975 </numberFormat> 976 </availableFormats> 977 </territory> 978 979 <!-- Finland (FI) --> 980 <!-- Metadata shared with land (AX) --> 981 <territory countryCode="358"> 982 <availableFormats> 983 <numberFormat pattern="(\d{2})(\d{3})(\d{3,4})"> 984 <leadingDigits> 985 [14]| 986 2[09]| 987 50| 988 7[135] 989 </leadingDigits> 990 <format>$1 $2 $3</format> 991 </numberFormat> 992 <numberFormat pattern="(\d)(\d{3})(\d{3,4})"> 993 <leadingDigits> 994 [25689][1-8]| 995 3 996 </leadingDigits> 997 <format>$1 $2</format> 998 </numberFormat> 999 </availableFormats> 1000 </territory> 1001 1002 <!-- Great Britain (GB) --> 1003 <territory countryCode="44" > 1004 <availableFormats> 1005 <!-- London. --> 1006 <numberFormat pattern="(\d{3})(\d{3})(\d{4})"> 1007 <leadingDigits>20</leadingDigits> 1008 <format>$1-$2-$3</format> 1009 </numberFormat> 1010 <numberFormat pattern="(\d{2})(\d{4})(\d{2})(\d{2})"> 1011 <leadingDigits>20</leadingDigits> 1012 <format>$1-$2-$3-$4</format> 1013 </numberFormat> 1014 <!-- 7ddd (not 70, 76) with 10 digits. Note: DOES include 7624 when used for IM. Also 1015 includes the four-digit fixed-line codes. --> 1016 <numberFormat pattern="(\d{4})(\d{3})(\d{3})"> 1017 <leadingDigits> 1018 1[2-48][02-9]| 1019 7(?: 1020 [1-5789]| 1021 624 1022 ) 1023 </leadingDigits> 1024 <format>$1 $2 $3</format> 1025 </numberFormat> 1026 <!-- 7ddd (not 70, 76) with 10 digits.--> 1027 <numberFormat pattern="(\d{3})(\d{4})(\d{3})"> 1028 <leadingDigits>7[1-5789]</leadingDigits> 1029 <format>$1 $2 $3</format> 1030 </numberFormat> 1031 <numberFormat pattern="(80\d)(\d{3,4})(\d{3})"> 1032 <leadingDigits>80</leadingDigits> 1033 <format>$1 $2 $3</format> 1034 </numberFormat> 1035 </availableFormats> 1036 </territory> 1037 1038 <!-- Georgia (GE) --> 1039 <territory countryCode="995"> 1040 <availableFormats> 1041 <numberFormat pattern="(\d{2})(\d)(\d{2})(\d{2})(\d{2})" > 1042 <leadingDigits>[348]</leadingDigits> 1043 <format>$1 $2 $3 $4 $5</format> 1044 </numberFormat> 1045 </availableFormats> 1046 </territory> 1047 1048 <!-- Gibraltar (GI) --> 1049 <territory countryCode="350" > 1050 <availableFormats> 1051 <numberFormat pattern="(\d{4})(\d{4})"> 1052 <leadingDigits>2</leadingDigits> 1053 <format>$1 $2</format> 1054 </numberFormat> 1055 </availableFormats> 1056 </territory> 1057 1058 <!-- Greece (GR) --> 1059 <territory countryCode="30"> 1060 <availableFormats> 1061 <numberFormat pattern="(\d{3})(\d{3})(\d{4})"> 1062 <leadingDigits>21</leadingDigits> 1063 <format>$1 $2 $3</format> 1064 </numberFormat> 1065 </availableFormats> 1066 </territory> 1067 1068 <!-- Croatia (HR) --> 1069 <territory countryCode="385"> 1070 <availableFormats> 1071 <numberFormat pattern="(1)(\d{3})(\d{4})"> 1072 <leadingDigits>1</leadingDigits> 1073 <format>$1 $2 $3</format> 1074 </numberFormat> 1075 <numberFormat pattern="(1)(\d{3})(\d{2})(\d{2})"> 1076 <leadingDigits>1</leadingDigits> 1077 <format>$1 $2 $3 $4</format> 1078 </numberFormat> 1079 <numberFormat pattern="(6[09])(\d{3})(\d{4})"> 1080 <leadingDigits>6[09]</leadingDigits> 1081 <format>$1 $2 $3</format> 1082 </numberFormat> 1083 <numberFormat pattern="(\d{2})(\d{2})(\d{4})"> 1084 <leadingDigits>[2-69]</leadingDigits> 1085 <format>$1 $2 $3</format> 1086 </numberFormat> 1087 </availableFormats> 1088 </territory> 1089 1090 <!-- Hungary (HU) --> 1091 <territory countryCode="36"> 1092 <availableFormats> 1093 <numberFormat pattern="(1)(\d{4})(\d{3})"> 1094 <leadingDigits>1</leadingDigits> 1095 <format>$1 $2 $3</format> 1096 </numberFormat> 1097 <numberFormat pattern="(\d{2})(\d{4})(\d{3})"> 1098 <leadingDigits>[2-9]</leadingDigits> 1099 <format>$1 $2 $3</format> 1100 </numberFormat> 1101 </availableFormats> 1102 </territory> 1103 1104 <!-- Indonesia (ID) --> 1105 <territory countryCode="62"> 1106 <availableFormats> 1107 <numberFormat nationalPrefixFormattingRule="($NP$FG)" 1108 pattern="(\d{2})(\d{3,4})(\d{4})"> 1109 <leadingDigits> 1110 2[124]| 1111 [36]1 1112 </leadingDigits> 1113 <format>$1 $2</format> 1114 </numberFormat> 1115 </availableFormats> 1116 </territory> 1117 1118 <!-- Israel (IL) --> 1119 <territory countryCode="972"> 1120 <availableFormats> 1121 <numberFormat nationalPrefixFormattingRule="$NP$FG" 1122 pattern="([2-489])(\d{3})(\d{2})(\d{2})"> 1123 <leadingDigits>[2-489]</leadingDigits> 1124 <format>$1-$2-$3-$4</format> 1125 </numberFormat> 1126 </availableFormats> 1127 </territory> 1128 1129 <!-- Japan (JP) --> 1130 <territory countryCode="81" > 1131 <availableFormats> 1132 <!-- Toll-free, premium-rate and UAN numbers --> 1133 <numberFormat pattern="(\d{3})(\d{2})(\d{4})"> 1134 <leadingDigits> 1135 (?: 1136 12| 1137 57| 1138 99 1139 )0 1140 </leadingDigits> 1141 <format>$1-$2-$3</format> 1142 </numberFormat> 1143 <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"> 1144 <leadingDigits> 1145 (?: 1146 12| 1147 57| 1148 99 1149 )0 1150 </leadingDigits> 1151 <format>$1-$2-$3-$4</format> 1152 </numberFormat> 1153 <numberFormat pattern="(\d{3})(\d{4})(\d{2})"> 1154 <leadingDigits> 1155 (?: 1156 12| 1157 57| 1158 99 1159 )0 1160 </leadingDigits> 1161 <format>$1-$2-$3</format> 1162 </numberFormat> 1163 </availableFormats> 1164 </territory> 1165 1166 <!-- Cambodia (KH) --> 1167 <territory countryCode="855"> 1168 <availableFormats> 1169 <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2,3})"> 1170 <format>$1 $2 $3 $4</format> 1171 </numberFormat> 1172 </availableFormats> 1173 </territory> 1174 1175 <!-- Sri Lanka (LK) --> 1176 <territory countryCode="94"> 1177 <availableFormats> 1178 <numberFormat pattern="(\d{3})(\d{3})(\d{3})"> 1179 <leadingDigits>7</leadingDigits> 1180 <format>$1 $2 $3</format> 1181 </numberFormat> 1182 </availableFormats> 1183 </territory> 1184 1185 <!-- Luxembourg (LU) --> 1186 <territory countryCode="352"> 1187 <availableFormats> 1188 <numberFormat pattern="(\d{2})(\d{3})(\d{3})"> 1189 <format>$1 $2 $3</format> 1190 </numberFormat> 1191 </availableFormats> 1192 </territory> 1193 1194 <!-- Moldova, Rep. of (MD) --> 1195 <territory countryCode="373"> 1196 <availableFormats> 1197 <numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})"> 1198 <leadingDigits> 1199 22| 1200 [367] 1201 </leadingDigits> 1202 <format>$1 $2 $3 $4</format> 1203 </numberFormat> 1204 <numberFormat pattern="(\d{2})(\d{3})(\d{3})"> 1205 <leadingDigits>[67]</leadingDigits> 1206 <format>$1 $2 $3</format> 1207 </numberFormat> 1208 </availableFormats> 1209 </territory> 1210 1211 <!-- Netherlands (NL) --> 1212 <territory countryCode="31"> 1213 <availableFormats> 1214 <numberFormat pattern="([1-578]\d)(\d{4})(\d{3})"> 1215 <leadingDigits> 1216 1[035]| 1217 2[0346]| 1218 3[03568]| 1219 4[0356]| 1220 5[0358]| 1221 7| 1222 8[4578] 1223 </leadingDigits> 1224 <format>$1 $2 $3</format> 1225 </numberFormat> 1226 <numberFormat pattern="([1-5]\d{2})(\d{2})(\d{2})(\d{2})"> 1227 <leadingDigits> 1228 1[16-8]| 1229 2[259]| 1230 3[124]| 1231 4[17-9]| 1232 5[124679] 1233 </leadingDigits> 1234 <format>$1 $2 $3 $4</format> 1235 </numberFormat> 1236 </availableFormats> 1237 </territory> 1238 1239 <!-- Papua New Guinea (PG) --> 1240 <territory countryCode="675"> 1241 <availableFormats> 1242 <numberFormat pattern="(7\d{2})(\d{2})(\d{3})"> 1243 <leadingDigits>7</leadingDigits> 1244 <format>$1 $2 $3</format> 1245 </numberFormat> 1246 </availableFormats> 1247 </territory> 1248 1249 <!-- Philippines (PH) --> 1250 <territory countryCode="63"> 1251 <availableFormats> 1252 <numberFormat pattern="(\d{4})(\d{4})"> 1253 <leadingDigits>2</leadingDigits> 1254 <format>$1 $2</format> 1255 </numberFormat> 1256 </availableFormats> 1257 </territory> 1258 1259 <!-- Portugal (PT) --> 1260 <territory countryCode="351" > 1261 <availableFormats> 1262 <!-- Lisbon/Porto numbers are usually formatted with the 21 or 22 separated - but sometimes 1263 they are formatted as 21X or 22X. --> 1264 <numberFormat pattern="(2\d{2})(\d{3})(\d{3})"> 1265 <leadingDigits>2[12]</leadingDigits> 1266 <format>$1 $2 $3</format> 1267 </numberFormat> 1268 <!-- Commonly used mobile formatting pattern. --> 1269 <numberFormat pattern="(9\d)(\d{3})(\d{4})"> 1270 <leadingDigits>9</leadingDigits> 1271 <format>$1 $2 $3</format> 1272 </numberFormat> 1273 <numberFormat pattern="(\d{2})(\d{3})(\d{2})(\d{2})"> 1274 <leadingDigits> 1275 2[12]| 1276 9 1277 </leadingDigits> 1278 <format>$1 $2 $3 $4</format> 1279 </numberFormat> 1280 </availableFormats> 1281 </territory> 1282 1283 <!-- Paraguay (PY) --> 1284 <territory countryCode="595"> 1285 <availableFormats> 1286 <numberFormat pattern="(\d{2})(\d{2})(\d{3})"> 1287 <leadingDigits> 1288 (?: 1289 [26]1| 1290 3[289]| 1291 4[124678]| 1292 7[123]| 1293 8[1236] 1294 ) 1295 </leadingDigits> 1296 <format>$1 $2 $3</format> 1297 </numberFormat> 1298 </availableFormats> 1299 </territory> 1300 1301 <!-- Russian Federation (RU) --> 1302 <territory countryCode="7"> 1303 <availableFormats> 1304 <numberFormat pattern="(\d{4})(\d{3})(\d{3})"> 1305 <leadingDigits>[346-9]</leadingDigits> 1306 <format>$1 $2-$3</format> 1307 </numberFormat> 1308 <numberFormat pattern="(\d{5})(\d{5})"> 1309 <leadingDigits>[346-9]</leadingDigits> 1310 <format>$1 $2</format> 1311 </numberFormat> 1312 <numberFormat pattern="(\d{4})(\d{2})(\d{2})(\d{2})"> 1313 <leadingDigits>[346-9]</leadingDigits> 1314 <format>$1 $2-$3-$4</format> 1315 </numberFormat> 1316 <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{3})"> 1317 <leadingDigits>[346-9]</leadingDigits> 1318 <format>$1 $2-$3-$4</format> 1319 </numberFormat> 1320 <numberFormat pattern="(\d{3})(\d)(\d{2})(\d{2})(\d{2})"> 1321 <leadingDigits>[346-9]</leadingDigits> 1322 <format>$1-$2 $3-$4-$5</format> 1323 </numberFormat> 1324 </availableFormats> 1325 </territory> 1326 1327 <!-- Thailand (TH) --> 1328 <territory countryCode="66"> 1329 <availableFormats> 1330 <!-- Over a million of the search results are formatted in two blocks like this. --> 1331 <numberFormat pattern="(2\d{3})(\d{4})"> 1332 <leadingDigits>2</leadingDigits> 1333 <format>$1 $2</format> 1334 </numberFormat> 1335 </availableFormats> 1336 </territory> 1337 1338 <!-- Turkey (TR) --> 1339 <territory countryCode="90"> 1340 <availableFormats> 1341 <numberFormat pattern="(\d{3})(\d{3})(\d{2})(\d{2})"> 1342 <leadingDigits> 1343 [23589]| 1344 4(?: 1345 [0-35-9]| 1346 4[0-35-9] 1347 ) 1348 </leadingDigits> 1349 <format>$1 $2 $3 $4</format> 1350 </numberFormat> 1351 </availableFormats> 1352 </territory> 1353 1354 <!-- Ukraine (UA) --> 1355 <territory countryCode="380" > 1356 <availableFormats> 1357 <numberFormat pattern="([3-689]\d)(\d{3})(\d{2})(\d{2})"> 1358 <leadingDigits> 1359 [38]9| 1360 4(?: 1361 [45][0-5]| 1362 87 1363 )| 1364 5(?: 1365 0| 1366 6(?: 1367 3[14-7]| 1368 7 1369 )| 1370 7[37] 1371 )| 1372 6[36-8]| 1373 9[1-9] 1374 </leadingDigits> 1375 <format>$1 $2 $3 $4</format> 1376 </numberFormat> 1377 <!-- Less common but still sometimes used. --> 1378 <numberFormat pattern="([3-689]\d)(\d{2})(\d{3})(\d{2})"> 1379 <leadingDigits> 1380 [38]9| 1381 4(?: 1382 [45][0-5]| 1383 87 1384 )| 1385 5(?: 1386 0| 1387 6(?: 1388 3[14-7]| 1389 7 1390 )| 1391 7[37] 1392 )| 1393 6[36-8]| 1394 9[1-9] 1395 </leadingDigits> 1396 <format>$1 $2 $3 $4</format> 1397 </numberFormat> 1398 </availableFormats> 1399 </territory> 1400 1401 <!-- Venezuela (VE) --> 1402 <territory countryCode="58"> 1403 <availableFormats> 1404 <numberFormat pattern="(\d{3})(\d{3})(\d{4})"> 1405 <format>$1 $2 $3</format> 1406 </numberFormat> 1407 </availableFormats> 1408 </territory> 1409 1410 <!-- Viet Nam (VN) --> 1411 <territory countryCode="84"> 1412 <availableFormats> 1413 <numberFormat pattern="(9\d{2})(\d{3})(\d{3})"> 1414 <leadingDigits>9</leadingDigits> 1415 <format>$1 $2 $3</format> 1416 </numberFormat> 1417 <numberFormat pattern="([48])(\d{2})(\d{3})(\d{3})"> 1418 <leadingDigits>[48]</leadingDigits> 1419 <format>$1 $2 $3 $4</format> 1420 </numberFormat> 1421 </availableFormats> 1422 </territory> 1423 </territories> 1424 </phoneNumberMetadata> 1425