js 四位字母、数组的正则表达式
//自定义验证格式,格式AAAA,BBC?,AB??,AACC "airport": { // credit: jquery.h5validate.js / orefalo "regex": /(^[a-zA-Z]{4}|^[a-zA-Z]{2}[\?]{2}|^[a-zA-Z]{3}[\?]{1})([,]([a-zA-Z]{4}|[a-zA-Z]{2}[\?]{2}|[a-zA-Z]{3}[\?]{1}))*$/, "alertText": "* 格式错误,如:AAAA,BBC?,AB??,AACC" }, //自定义时间格式,格式0000-9999, "starttime": { // credit: jquery.h5validate.js / orefalo "regex": /(^[0-1][0-9]|^2[0-3])[0-5]{1}[0-9]{1}$/, "alertText": "* 格式错误,前两位表示小时,后两位表示分钟,范围在0000-2359" }, //自定义长度格式,格式0000-9999, "controlLevel": { // credit: jquery.h5validate.js / orefalo "regex": /(^[1-9][0-9]*)([,]([1-9][0-9]*))*$/, },
相关推荐
wangzhaotongalex 2020-10-20
wyq 2020-11-11
TLROJE 2020-10-26
风雨断肠人 2020-10-13
duanqingfeng 2020-09-29
rechanel 2020-11-16
cshanzhizi 2020-10-16
luofuIT成长记录 2020-09-22
phphub 2020-09-10
taomengxing 2020-09-07
MaggieRose 2020-08-19
flyingssky 2020-08-18
山水沐光 2020-08-18
jyj00 2020-08-15
AHuqihua 2020-08-09
山水沐光 2020-08-03