The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# 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::IL;
use base qw(Number::Phone::StubCountry);
  
use strict;
use warnings;
our $VERSION = 1.20140904220737;

my $formatters = [{'pattern' => '([2-489])(\\d{3})(\\d{4})','leading_digits' => '[2-489]'},{'pattern' => '([57]\\d)(\\d{3})(\\d{4})','leading_digits' => '[57]'},{'pattern' => '(1)([7-9]\\d{2})(\\d{3})(\\d{3})','leading_digits' => '1[7-9]'},{'pattern' => '(1255)(\\d{3})','leading_digits' => '125'},{'pattern' => '(1200)(\\d{3})(\\d{3})','leading_digits' => '120'},{'pattern' => '(1212)(\\d{2})(\\d{2})','leading_digits' => '121'},{'pattern' => '(1599)(\\d{6})','leading_digits' => '15'},{'pattern' => '(\\d{4})','leading_digits' => '[2-689]'}];
my $validators = {'toll_free' => '1(?:80[019]\\d{3}|255)\\d{3}','personal_number' => '','geographic' => '[2-489]\\d{7}','special_rate' => '(1700\\d{6})|(1(?:212|(?:9(?:0[01]|19)|200)\\d{2})\\d{4})|([2-689]\\d{3}|1599\\d{6})','voip' => '7(?:2[23]\\d|3[237]\\d|47\\d|6(?:5\\d|8[068])|7\\d{2}|8(?:33|55|77|81))\\d{5}','pager' => '','mobile' => '5(?:[02347-9]\\d{2}|5(?:2[23]|3[34]|4[45]|5[5689]|6[67]|7[78]|8[89])|6[2-9]\\d)\\d{5}','fixed_line' => '[2-489]\\d{7}'};
sub new {
  my $class = shift;
  my $number = shift;
  $number =~ s/(^\+972|\D)//g;
  $number =~ s/(^0)//g;
  my $self = bless({ number => $number, formatters => $formatters, validators => $validators }, $class);
  return $self->is_valid() ? $self : undef;
}

1;