Current Path : /www/wwwroot/jsnz.xshop.geekdanceshop.com/config/
Upload File :
Current File : /www/wwwroot/jsnz.xshop.geekdanceshop.com/config/regexp.php

<?php

return [
    //整数
    'num'       => '/^-?(0|[1-9]\d*)(\.0*)?$/',
    '>0num'     => '/^[1-9]\d*(\.0*)?$/',
    '>=0num'    => '/^(0|[1-9]\d*)(\.0*)?$/',
    //两位浮点数
    'float2'    => '/^-?(0|[1-9]\d*)(.\d{1,2})?$/',
    '>0float2'  => '/^(0.\d{1,2}|[1-9]\d*(.\d{1,2})?)$/',
    '>=0float2' => '/^(0|[1-9]\d*)(.\d{1,2})?$/',
    //3位浮点数
    'float3'    => '/^-?(0|[1-9]\d*)(.\d{1,3})?$/',
    '>0float3'  => '/^(0.\d{1,2}|[1-9]\d*(.\d{1,3})?)$/',
    '>=0float3' => '/^(0|[1-9]\d*)(.\d{1,3})?$/',
    //手机号
    'mobile'    => '/^1\d{10}$/',
    //身份证号
    'idcard15'  => '/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/',
    'idcard18'  => '/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{4}$/',
];
金穗农资
captcha