# automatically generated file, don't edit



# Copyright 2011 David Cantrell, derived from data from libphonenumber
# http://code.google.com/p/libphonenumber/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
package Number::Phone::StubCountry::LU;
use base qw(Number::Phone::StubCountry);

use strict;
use warnings;
use utf8;
our $VERSION = 1.20210309172132;

my $formatters = [
                {
                  'format' => '$1 $2',
                  'leading_digits' => '
            2(?:
              0[2-689]|
              [2-9]
            )|
            [3-57]|
            8(?:
              0[2-9]|
              [13-9]
            )|
            9(?:
              0[89]|
              [2-579]
            )
          ',
                  'pattern' => '(\\d{2})(\\d{3})'
                },
                {
                  'format' => '$1 $2 $3',
                  'leading_digits' => '
            2(?:
              0[2-689]|
              [2-9]
            )|
            [3-57]|
            8(?:
              0[2-9]|
              [13-9]
            )|
            9(?:
              0[89]|
              [2-579]
            )
          ',
                  'pattern' => '(\\d{2})(\\d{2})(\\d{2})'
                },
                {
                  'format' => '$1 $2 $3',
                  'leading_digits' => '20[2-689]',
                  'pattern' => '(\\d{2})(\\d{2})(\\d{3})'
                },
                {
                  'format' => '$1 $2 $3 $4',
                  'leading_digits' => '
            2(?:
              [0367]|
              4[3-8]
            )
          ',
                  'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})'
                },
                {
                  'format' => '$1 $2 $3',
                  'leading_digits' => '
            80[01]|
            90[015]
          ',
                  'pattern' => '(\\d{3})(\\d{2})(\\d{3})'
                },
                {
                  'format' => '$1 $2 $3 $4',
                  'leading_digits' => '20',
                  'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{3})'
                },
                {
                  'format' => '$1 $2 $3',
                  'leading_digits' => '6',
                  'pattern' => '(\\d{3})(\\d{3})(\\d{3})'
                },
                {
                  'format' => '$1 $2 $3 $4 $5',
                  'leading_digits' => '
            2(?:
              [0367]|
              4[3-8]
            )
          ',
                  'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})'
                },
                {
                  'format' => '$1 $2 $3 $4',
                  'leading_digits' => '
            [3-57]|
            8[13-9]|
            9(?:
              0[89]|
              [2-579]
            )|
            (?:
              2|
              80
            )[2-9]
          ',
                  'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})'
                }
              ];

my $validators = {
                'fixed_line' => '
          (?:
            35[013-9]|
            80[2-9]|
            90[89]
          )\\d{1,8}|
          (?:
            2[2-9]|
            3[0-46-9]|
            [457]\\d|
            8[13-9]|
            9[2-579]
          )\\d{2,9}
        ',
                'geographic' => '
          (?:
            35[013-9]|
            80[2-9]|
            90[89]
          )\\d{1,8}|
          (?:
            2[2-9]|
            3[0-46-9]|
            [457]\\d|
            8[13-9]|
            9[2-579]
          )\\d{2,9}
        ',
                'mobile' => '
          6(?:
            [269][18]|
            5[158]|
            7[189]|
            81
          )\\d{6}
        ',
                'pager' => '',
                'personal_number' => '',
                'specialrate' => '(801\\d{5})|(90[015]\\d{5})',
                'toll_free' => '800\\d{5}',
                'voip' => '
          20(?:
            1\\d{5}|
            [2-689]\\d{1,7}
          )
        '
              };
my %areanames = ();
$areanames{en} = {"3522499", "Troisvierges",
"3522772", "Echternach",
"35295", "Wiltz",
"3522445", "Diedrich",
"3522788", "Mertzig\/Wahl",
"3522795", "Wiltz",
"3522673", "Rosport",
"3522749", "Howald",
"3522748", "Contern\/Foetz",
"35243", "Findel\/Kirchberg",
"3522697", "Huldange",
"3522420", "Luxembourg",
"3522485", "Bissen\/Roost",
"3522650", "Bascharage\/Petange\/Rodange",
"35287", "Larochette",
"3522630", "Capellen\/Kehlen",
"3522473", "Rosport",
"3522787", "Larochette",
"3522446", "Luxembourg",
"3522450", "Bascharage\/Petange\/Rodange",
"3522497", "Huldange",
"3522685", "Bissen\/Roost",
"3522430", "Capellen\/Kehlen",
"35249", "Howald",
"3522699", "Troisvierges",
"3522645", "Diedrich",
"3522486", "Luxembourg",
"3522747", "Lintgen",
"3522470", "Luxembourg",
"35237", "Leudelange\/Ehlange\/Mondercange",
"35245", "Diedrich",
"3522484", "Han\/Lesse",
"3522453", "Esch\-sur\-Alzette",
"3522441", "Luxembourg",
"3522623", "Mondorf\-les\-Bains\/Bascharage\/Noerdange\/Remich",
"35257", "Esch\-sur\-Alzette\/Schifflange",
"3522433", "Walferdange",
"35241", "Luxembourg\ City",
"3522481", "Ettelbruck\/Reckange\-sur\-Mess",
"3522444", "Luxembourg",
"3522722", "Luxembourg\ City",
"3522681", "Ettelbruck\/Reckange\-sur\-Mess",
"35299", "Troisvierges",
"3522752", "Dudelange",
"3522732", "Lintgen\/Mersch\/Steinfort",
"3522684", "Han\/Lesse",
"3522423", "Mondorf\-les\-Bains\/Bascharage\/Noerdange\/Remich",
"3522653", "Esch\-sur\-Alzette",
"3522633", "Walferdange",
"35236", "Hesperange\/Kockelscheuer\/Roeser",
"3522723", "Mondorf\-les\-Bains\/Bascharage\/Noerdange\/Remich",
"35256", "Rumelange",
"35280", "Diekirch",
"3522432", "Lintgen\/Mersch\/Steinfort",
"3522622", "Luxembourg\ City",
"3522452", "Dudelange",
"3522781", "Ettelbruck\/Reckange\-sur\-Mess",
"3522632", "Lintgen\/Mersch\/Steinfort",
"3522652", "Dudelange",
"35278", "Junglinster",
"3522422", "Luxembourg\ City",
"3522784", "Han\/Lesse",
"35242", "Plateau\ de\ Kirchberg",
"35234", "Rameldange\/Senningerberg",
"3522733", "Walferdange",
"35288", "Mertzig\/Wahl",
"3522753", "Esch\-sur\-Alzette",
"352249", "Luxembourg",
"35254", "Esch\-sur\-Alzette",
"3522672", "Echternach",
"35250", "Bascharage\/Petange\/Rodange",
"3522447", "Lintgen",
"35230", "Capellen\/Kehlen",
"35276", "Wormeldange",
"3522688", "Mertzig\/Wahl",
"3522649", "Howald",
"3522648", "Contern\/Foetz",
"35228", "Luxembourg\ City",
"3522773", "Rosport",
"3522695", "Wiltz",
"3522487", "Larochette",
"3522730", "Capellen\/Kehlen",
"3522750", "Bascharage\/Petange\/Rodange",
"3522797", "Huldange",
"3522449", "Howald",
"3522448", "Contern\/Foetz",
"3522495", "Wiltz",
"3522687", "Larochette",
"35258", "Differdange",
"3522785", "Bissen\/Roost",
"35284", "Han\/Lesse",
"35292", "Clervaux\/Fischbach\/Hosingen",
"3522745", "Diedrich",
"3522799", "Troisvierges",
"3522472", "Echternach",
"3522647", "Lintgen",
"3522489", "Luxembourg",
"3522488", "Mertzig\/Wahl",
"35274", "Wasserbillig",
"3522654", "Esch\-sur\-Alzette",
"3522742", "Plateau\ de\ Kirchberg",
"3522424", "Luxembourg",
"3522634", "Rameldange\/Senningerberg",
"3522475", "Grevenmacher\-sur\-Moselle",
"35240", "Howald",
"3522683", "Vianden",
"3522421", "Weicherdange",
"352246", "Luxembourg",
"3522651", "Dudelange\/Bettembourg\/Livange",
"3522643", "Findel\/Kirchberg",
"3522492", "Clervaux\/Fischbach\/Hosingen",
"3522779", "Berdorf\/Consdorf",
"3522676", "Wormeldange",
"3522631", "Bertrange\/Mamer\/Munsbach\/Strassen",
"3522778", "Junglinster",
"3522451", "Dudelange\/Bettembourg\/Livange",
"35248", "Contern\/Foetz",
"3522443", "Findel\/Kirchberg",
"3522621", "Weicherdange",
"3522476", "Wormeldange",
"3522431", "Bertrange\/Mamer\/Munsbach\/Strassen",
"3522692", "Clervaux\/Fischbach\/Hosingen",
"3522454", "Esch\-sur\-Alzette",
"3522675", "Grevenmacher\-sur\-Moselle",
"3522434", "Rameldange\/Senningerberg",
"35272", "Echternach",
"3522483", "Vianden",
"35246", "Luxembourg\ City",
"3522440", "Howald",
"35222", "Luxembourg\ City",
"3522436", "Hesperange\/Kockelscheuer\/Roeser",
"3522471", "Betzdorf",
"3522456", "Rumelange",
"3522728", "Luxembourg\ City",
"3522729", "Luxembourg\/Kockelscheuer",
"3522737", "Leudelange\/Ehlange\/Mondercange",
"3522757", "Esch\-sur\-Alzette\/Schifflange",
"3522635", "Sandweiler\/Moutfort\/Roodt\-sur\-Syre",
"3522474", "Wasserbillig",
"3522655", "Esch\-sur\-Alzette\/Mondercange",
"3522425", "Luxembourg",
"3522480", "Diekirch",
"3522727", "Belair\,\ Luxembourg",
"3522674", "Wasserbillig",
"3522435", "Sandweiler\/Moutfort\/Roodt\-sur\-Syre",
"3522625", "Luxembourg",
"3522680", "Diekirch",
"3522455", "Esch\-sur\-Alzette\/Mondercange",
"3522767", "Dudelange",
"35232", "Mersch",
"35244", "Luxembourg\ City",
"3522640", "Howald",
"3522739", "Windhof\/Steinfort",
"35252", "Dudelange",
"3522636", "Hesperange\/Kockelscheuer\/Roeser",
"3522671", "Betzdorf",
"3522426", "Luxembourg",
"3522758", "Soleuvre\/Differdange",
"3522656", "Rumelange",
"3522759", "Soleuvre",
"3522467", "Dudelange",
"35235", "Sandweiler\/Moutfort\/Roodt\-sur\-Syre",
"35247", "Lintgen",
"3522628", "Luxembourg\ City",
"3522629", "Luxembourg\/Kockelscheuer",
"3522458", "Soleuvre\/Differdange",
"35283", "Vianden",
"3522459", "Soleuvre",
"3522439", "Windhof\/Steinfort",
"3522438", "Luxembourg",
"35255", "Esch\-sur\-Alzette\/Mondercange",
"3522427", "Belair\,\ Luxembourg",
"35231", "Bertrange\/Mamer\/Munsbach\/Strassen",
"3522657", "Esch\-sur\-Alzette\/Schifflange",
"3522637", "Leudelange\/Ehlange\/Mondercange",
"35251", "Dudelange\/Bettembourg\/Livange",
"35273", "Rosport",
"3522755", "Esch\-sur\-Alzette\/Mondercange",
"3522735", "Sandweiler\/Moutfort\/Roodt\-sur\-Syre",
"3522457", "Esch\-sur\-Alzette\/Schifflange",
"3522627", "Belair\,\ Luxembourg",
"35279", "Berdorf\/Consdorf",
"3522437", "Leudelange\/Ehlange\/Mondercange",
"3522725", "Luxembourg",
"3522780", "Diekirch",
"3522774", "Wasserbillig",
"3522740", "Howald",
"3522667", "Dudelange",
"35225", "Luxembourg",
"3522658", "Soleuvre\/Differdange",
"3522756", "Rumelange",
"3522659", "Soleuvre",
"3522428", "Luxembourg\ City",
"3522429", "Luxembourg\/Kockelscheuer",
"3522639", "Windhof\/Steinfort",
"3522736", "Hesperange\/Kockelscheuer\/Roeser",
"3522771", "Betzdorf",
"35297", "Huldange",
"3522734", "Rameldange\/Senningerberg",
"3522642", "Plateau\ de\ Kirchberg",
"3522754", "Esch\-sur\-Alzette",
"35281", "Ettelbruck",
"3522477", "Luxembourg",
"3522783", "Vianden",
"35275", "Grevenmacher",
"3522776", "Wormeldange",
"3522679", "Berdorf\/Consdorf",
"3522678", "Junglinster",
"3522731", "Bertrange\/Mamer\/Munsbach\/Strassen",
"35233", "Walferdange",
"3522751", "Dudelange\/Bettembourg\/Livange",
"3522743", "Findel\/Kirchberg",
"35271", "Betzdorf",
"35253", "Esch\-sur\-Alzette",
"35229", "Luxembourg\/Kockelscheuer",
"35285", "Bissen\/Roost",
"3522792", "Clervaux\/Fischbach\/Hosingen",
"3522479", "Berdorf\/Consdorf",
"35259", "Soleuvre",
"35223", "Mondorf\-les\-Bains\/Bascharage\/Noerdange\/Remich",
"3522478", "Junglinster",
"3522721", "Weicherdange",
"3522482", "Luxembourg",
"35239", "Windhof\/Steinfort",
"352240", "Luxembourg",
"3522775", "Grevenmacher\-sur\-Moselle",
"352241", "Luxembourg",
"3522442", "Plateau\ de\ Kirchberg",};
$areanames{de} = {"352240", "Luxemburg",
"3522775", "Distrikt\ Grevenmacher\-sur\-Moselle",
"352241", "Luxemburg",
"3522792", "Kanton\ Clerf\/Fischbach\/Hosingen",
"35223", "Bad\ Mondorf",
"3522721", "Weicherdingen",
"3522482", "Luxemburg",
"3522776", "Wormeldingen",
"3522731", "Bartringen",
"35233", "Walferdingen",
"3522751", "Düdelingen\/Bettemburg\/Livingen",
"35229", "Luxemburg",
"35297", "Huldingen",
"3522734", "Rammeldingen\/Senningerberg",
"35281", "Ettelbrück",
"3522477", "Luxemburg",
"35275", "Distrikt\ Grevenmacher",
"3522667", "Düdelingen",
"35225", "Luxemburg",
"3522658", "Soleuvre\/Differdingen",
"3522756", "Rümelingen",
"3522429", "Luxemburg\/Kockelscheuer",
"3522736", "Hesperingen\/Kockelscheuer\/Roeser",
"3522457", "Esch\-sur\-Alzette\/Schifflingen",
"3522627", "Belair\,\ Luxemburg",
"3522437", "Leudelingen\/Ehlingen\/Monnerich",
"3522725", "Luxemburg",
"3522427", "Belair\,\ Luxemburg",
"35231", "Bartringen",
"3522657", "Esch\-sur\-Alzette\/Schifflingen",
"3522637", "Leudelingen\/Ehlingen\/Monnerich",
"35251", "Düdelingen\/Bettemburg\/Livingen",
"3522755", "Esch\-sur\-Alzette\/Monnerich",
"3522735", "Sandweiler\/Mutfort\/Roodt\-sur\-Syre",
"3522467", "Düdelingen",
"35235", "Sandweiler\/Mutfort\/Roodt\-sur\-Syre",
"3522628", "Luxemburg",
"3522629", "Luxemburg\/Kockelscheuer",
"3522458", "Soleuvre\/Differdingen",
"35255", "Esch\-sur\-Alzette\/Monnerich",
"3522438", "Luxemburg",
"3522767", "Düdelingen",
"35232", "Kanton\ Mersch",
"35244", "Luxemburg",
"35252", "Düdelingen",
"3522636", "Hesperingen\/Kockelscheuer\/Roeser",
"3522758", "Soleuvre\/Differdingen",
"3522656", "Rümelingen",
"3522727", "Belair\,\ Luxemburg",
"3522435", "Sandweiler\/Mutfort\/Roodt\-sur\-Syre",
"3522625", "Luxemburg",
"3522455", "Esch\-sur\-Alzette\/Monnerich",
"3522737", "Leudelingen\/Ehlingen\/Monnerich",
"3522757", "Esch\-sur\-Alzette\/Schifflingen",
"3522635", "Sandweiler\/Mutfort\/Roodt\-sur\-Syre",
"3522655", "Esch\-sur\-Alzette\/Monnerich",
"35246", "Luxemburg",
"35222", "Luxemburg",
"3522436", "Hesperingen\/Kockelscheuer\/Roeser",
"3522456", "Rümelingen",
"3522728", "Luxemburg",
"3522729", "Luxemburg\/Kockelscheuer",
"3522675", "Distrikt\ Grevenmacher\-sur\-Moselle",
"3522434", "Rammeldingen\/Senningerberg",
"3522451", "Düdelingen\/Bettemburg\/Livingen",
"3522621", "Weicherdingen",
"3522476", "Wormeldingen",
"3522431", "Bartringen",
"3522692", "Kanton\ Clerf\/Fischbach\/Hosingen",
"3522421", "Weicherdingen",
"352246", "Luxemburg",
"3522651", "Düdelingen\/Bettemburg\/Livingen",
"3522492", "Kanton\ Clerf\/Fischbach\/Hosingen",
"3522676", "Wormeldingen",
"3522631", "Bartringen",
"3522634", "Rammeldingen\/Senningerberg",
"352242", "Luxemburg",
"3522475", "Distrikt\ Grevenmacher\-sur\-Moselle",
"35292", "Kanton\ Clerf\/Fischbach\/Hosingen",
"3522799", "Ulflingen",
"3522489", "Luxemburg",
"3522687", "Fels",
"35258", "Differdingen",
"35228", "Luxemburg",
"3522487", "Fels",
"3522730", "Kanton\ Capellen\/Kehlen",
"3522750", "Bascharage\/Petingen\/Rodingen",
"3522797", "Huldingen",
"35250", "Bascharage\/Petingen\/Rodingen",
"35276", "Wormeldingen",
"35230", "Kanton\ Capellen\/Kehlen",
"35234", "Rammeldingen\/Senningerberg",
"3522733", "Walferdingen",
"352249", "Luxemburg",
"3522781", "Ettelbrück\/Reckange\-sur\-Mess",
"3522632", "Lintgen\/Kanton\ Mersch\/Steinfort",
"3522652", "Düdelingen",
"3522432", "Lintgen\/Kanton\ Mersch\/Steinfort",
"3522622", "Luxemburg",
"3522452", "Düdelingen",
"35236", "Hesperingen\/Kockelscheuer\/Roeser",
"3522723", "Bad\ Mondorf",
"35256", "Rümelingen",
"3522423", "Bad\ Mondorf",
"3522633", "Walferdingen",
"3522681", "Ettelbrück\/Reckange\-sur\-Mess",
"35299", "Ulflingen",
"3522752", "Düdelingen",
"3522732", "Lintgen\/Kanton\ Mersch\/Steinfort",
"35241", "Luxemburg",
"3522481", "Ettelbrück\/Reckange\-sur\-Mess",
"3522444", "Luxemburg",
"3522722", "Luxemburg",
"3522470", "Luxemburg",
"35237", "Leudelingen\/Ehlingen\/Monnerich",
"3522441", "Luxemburg",
"3522623", "Bad\ Mondorf",
"35257", "Esch\-sur\-Alzette\/Schifflingen",
"3522433", "Walferdingen",
"3522699", "Ulflingen",
"3522486", "Luxemburg",
"3522787", "Fels",
"3522446", "Luxemburg",
"3522450", "Bascharage\/Petingen\/Rodingen",
"3522497", "Huldingen",
"3522430", "Kanton\ Capellen\/Kehlen",
"3522697", "Huldingen",
"3522650", "Bascharage\/Petingen\/Rodingen",
"35287", "Fels",
"3522630", "Kanton\ Capellen\/Kehlen",
"3522499", "Ulflingen",};
$areanames{fr} = {"3522722", "Luxembourg\-Ville",
"35241", "Luxembourg\-Ville",
"3522422", "Luxembourg\-Ville",
"3522622", "Luxembourg\-Ville",
"35228", "Luxembourg\-Ville",
"35244", "Luxembourg\-Ville",
"3522728", "Luxembourg\-Ville",
"35246", "Luxembourg\-Ville",
"35222", "Luxembourg\-Ville",
"3522428", "Luxembourg\-Ville",
"3522628", "Luxembourg\-Ville",};

    sub new {
      my $class = shift;
      my $number = shift;
      $number =~ s/(^\+352|\D)//g;
      my $self = bless({ number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class);
      return $self if ($self->is_valid());
      $number =~ s/^(?:(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\d))//;
      $self = bless({ number => $number, formatters => $formatters, validators => $validators, areanames => \%areanames}, $class);
      return $self->is_valid() ? $self : undef;
    }
1;