Skip to content

Instantly share code, notes, and snippets.

@martinknor
Created April 21, 2021 11:20
Show Gist options
  • Save martinknor/f2f3e215de9e3a54769728d16ceb6e95 to your computer and use it in GitHub Desktop.
Save martinknor/f2f3e215de9e3a54769728d16ceb6e95 to your computer and use it in GitHub Desktop.
'generalDesc' =>
array (
'NationalNumberPattern' => '(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}',
'PossibleLength' =>
array (
0 => 9,
1 => 10,
2 => 11,
3 => 12,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'fixedLine' =>
array (
'NationalNumberPattern' => '(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}',
'ExampleNumber' => '212345678',
'PossibleLength' =>
array (
0 => 9,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}',
'ExampleNumber' => '601123456',
'PossibleLength' =>
array (
0 => 9,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'tollFree' =>
array (
'NationalNumberPattern' => '800\\d{6}',
'ExampleNumber' => '800123456',
'PossibleLength' =>
array (
0 => 9,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'premiumRate' =>
array (
'NationalNumberPattern' => '9(?:0[05689]|76)\\d{6}',
'ExampleNumber' => '900123456',
'PossibleLength' =>
array (
0 => 9,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'sharedCost' =>
array (
'NationalNumberPattern' => '8[134]\\d{7}',
'ExampleNumber' => '811234567',
'PossibleLength' =>
array (
0 => 9,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'personalNumber' =>
array (
'NationalNumberPattern' => '70[01]\\d{6}',
'ExampleNumber' => '700123456',
'PossibleLength' =>
array (
0 => 9,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'voip' =>
array (
'NationalNumberPattern' => '9[17]0\\d{6}',
'ExampleNumber' => '910123456',
'PossibleLength' =>
array (
0 => 9,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'pager' =>
array (
'PossibleLength' =>
array (
0 => -1,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'uan' =>
array (
'NationalNumberPattern' => '9(?:5\\d|7[2-4])\\d{6}',
'ExampleNumber' => '972123456',
'PossibleLength' =>
array (
0 => 9,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'voicemail' =>
array (
'NationalNumberPattern' => '9(?:3\\d{9}|6\\d{7,10})',
'ExampleNumber' => '93123456789',
'PossibleLength' =>
array (
),
'PossibleLengthLocalOnly' =>
array (
),
),
'noInternationalDialling' =>
array (
'PossibleLength' =>
array (
0 => -1,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'id' => 'CZ',
'countryCode' => 420,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
array (
0 =>
array (
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[2-8]|9[015-7]',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
1 =>
array (
'pattern' => '(\\d{2})(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
array (
0 => '9',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
2 =>
array (
'pattern' => '(\\d{3})(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
array (
0 => '9',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
),
'intlNumberFormat' =>
array (
),
'mainCountryForCode' => false,
'leadingZeroPossible' => false,
'mobileNumberPortableRegion' => true,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment