class RegexConst { const REGEX_MOBLIE_86 = ‘/^1(3|4|5|7|8)\d{9}$/‘;//中国手机号 const REGEX_MOBLIE_852 = ‘/^(5|6|9)\d{7}$/‘;//香港手机号 const REGEX_MOBLIE_1 = ‘/^\d{10}$/‘;//美国手机号 const REGEX_MOBLIE_0039 = ‘/^\d{10}$/‘;//意大利手机号 const REGEX_MOBLIE_0044 = ‘/^7\d{9}$/‘;//英国手机号 const REGEX_MOBLIE = ‘/^\d{7,11}$/‘;//手机号 const REGEX_MOBLIE_CODE = ‘/^\d{1,5}$/‘;//手机号国际代码 const REGEX_EMAIL = ‘/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/‘; //const REGEX_EMAIL = ‘/^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/‘;//EMAIL const REGEX_PASSWORDS = ‘/^[a-zA-Z0-9]{6,20}$/‘;//密码 const REGEX_TELEPHONE = ‘/^((0\d{2,3})-)(\d{7,8})$/‘; //固定电话 }
时间: 2024-10-10 14:49:03