2023-03-11 12:04:29 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Zend Framework (http://framework.zend.com/)
|
|
|
|
*
|
|
|
|
* @link http://github.com/zendframework/zf2 for the canonical source repository
|
2023-04-01 09:03:34 +03:00
|
|
|
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
|
2023-03-11 12:04:29 +03:00
|
|
|
* @license http://framework.zend.com/license/new-bsd New BSD License
|
|
|
|
*/
|
|
|
|
|
|
|
|
return array(
|
|
|
|
'code' => '507',
|
|
|
|
'patterns' => array(
|
|
|
|
'national' => array(
|
|
|
|
'general' => '/^[1-9]\\d{6,7}$/',
|
|
|
|
'fixed' => '/^(?:1(?:0[02-579]|19|2[37]|3[03]|4[479]|57|65|7[016-8]|8[58]|9[134])|2(?:[0235679]\\d|1[0-7]|4[04-9]|8[028])|3(?:0[0-7]|1[14-7]|2[0-3]|3[03]|4[0457]|5[56]|6[068]|7[078]|80|9\\d)|4(?:3[013-59]|4\\d|7[0-689])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-267]|[349]0|5[6-9]|7[0-24-7]|8[89])|8(?:[34]\\d|5[0-4]|8[02])|9(?:0[78]|1[0178]|2[0378]|3[379]|40|5[0489]|6[06-9]|7[046-9]|8[36-8]|9[1-9]))\\d{4}$/',
|
|
|
|
'mobile' => '/^(?:1[16]1|21[89]|8(?:1[01]|7[23]))\\d{4}|6(?:[04-9]\\d|1[0-5]|2[0-7]|3[5-9])\\d{5}$/',
|
|
|
|
'tollfree' => '/^80[09]\\d{4}$/',
|
|
|
|
'premium' => '/^(?:779|8(?:2[235]|55|60|7[578]|86|95)|9(?:0[0-2]|81))\\d{4}$/',
|
|
|
|
'shortcode' => '/^10[2-4]$/',
|
|
|
|
'emergency' => '/^911$/',
|
|
|
|
),
|
|
|
|
'possible' => array(
|
|
|
|
'general' => '/^\\d{7,8}$/',
|
|
|
|
'fixed' => '/^\\d{7}$/',
|
|
|
|
'tollfree' => '/^\\d{7}$/',
|
|
|
|
'premium' => '/^\\d{7}$/',
|
|
|
|
'shortcode' => '/^\\d{3}$/',
|
|
|
|
'emergency' => '/^\\d{3}$/',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|