torrentpier-lts/library/Zend/I18n/Validator/PhoneNumber/KW.php

29 lines
1.0 KiB
PHP

<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
return array(
'code' => '965',
'patterns' => array(
'national' => array(
'general' => '/^[12569]\\d{6,7}$/',
'fixed' => '/^(?:18\\d|2(?:[23]\\d{2}|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7])))\\d{4}$/',
'mobile' => '/^(?:5(?:11|[05]\\d)|6(?:0[034679]|5[015-9]|6\\d|7[067]|9[069])|9(?:0[09]|4[049]|6[69]|[79]\\d))\\d{5}$/',
'shortcode' => '/^1(?:[02-9]\\d|1[013-9])$/',
'emergency' => '/^112$/',
),
'possible' => array(
'general' => '/^\\d{7,8}$/',
'fixed' => '/^\\d{7,8}$/',
'mobile' => '/^\\d{8}$/',
'shortcode' => '/^\\d{3}$/',
'emergency' => '/^\\d{3}$/',
),
),
);