标签:div mobile 正则 bsp email let 规则 中间 blank
// 验证规则 var validRegex = { letterOnly : /^[A-Za-z]+$/, numLetterOnly : /^[A-Za-z0-9]+$/, notBlank : /^[^\s]{1,}(.)*[^\s]{1,}$|^[^\s]{1}$/, //前后空格不要,中间空格可以有 tel : /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{8}$|^[1][358]\d{9}$/, account : /^\d{16}$|^\d{19}$/, mobile : /^[1][358]\d{9}$/, email : /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/, postCode : /^[1-9][0-9]{5}$/, price : /^(?!(0[0-9]{0,}$))[0-9]{1,}[.]{0,}[0-9]{0,4}$/, amount:/^[0-9]+(.[0-9]{1,2})?$/, integer:/^\d+$/, carNo : /^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z0-9]{5}$/, userName : /^[a-zA-Z][a-zA-Z0-9_]*$/, roleName : /^[a-zA-Z\u4E00-\u9FFF][a-zA-Z0-9_\u4E00-\u9FFF]+$/, fax : /^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/ }
标签:div mobile 正则 bsp email let 规则 中间 blank
原文地址:https://www.cnblogs.com/ykpkris/p/13328480.html