Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SI.php « PhoneNumber « Validator « src « zend-i18n « zendframework « vendor - github.com/bareos/bareos-webui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e291c0c6d96459e12706eb86fc79eecd70ad5092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

return array(
    'code' => '386',
    'patterns' => array(
        'national' => array(
            'general' => '/^[1-7]\\d{6,7}|[89]\\d{4,7}$/',
            'fixed' => '/^(?:1\\d|[25][2-8]|3[4-8]|4[24-8]|7[3-8])\\d{6}$/',
            'mobile' => '/^(?:[37][01]|4[019]|51|6[48])\\d{6}$/',
            'tollfree' => '/^80\\d{4,6}$/',
            'premium' => '/^90\\d{4,6}|89[1-3]\\d{2,5}$/',
            'voip' => '/^(?:59|8[1-3])\\d{6}$/',
            'emergency' => '/^11[23]$/',
        ),
        'possible' => array(
            'general' => '/^\\d{5,8}$/',
            'fixed' => '/^\\d{7,8}$/',
            'mobile' => '/^\\d{8}$/',
            'tollfree' => '/^\\d{6,8}$/',
            'premium' => '/^\\d{5,8}$/',
            'voip' => '/^\\d{8}$/',
            'emergency' => '/^\\d{3}$/',
        ),
    ),
);