//用户名正则,4到16位(字母,数字,下划线,减号)
var
uPattern = /^[a-zA-Z0-9_-]{4,16}$/;
//密码强度正则,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符
var
pPattern = /^.*(?=.{6,})(?=.*d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@
#$%^&*? ]).*$/;
//身份证号(18位)正则
var
cP = /^[1-9]d{5}(18|19|([23]d))d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)d{3}[0-9Xx]$/;
//Email正则
var
ePattern = /^([A-Za-z0-9_-.])+@([A-Za-z0-9_-.])+.([A-Za-z]{2,4})$/;
参考出处:https://www.jb51.net/article/115170.htm
https://www.cnblogs.com/fozero/p/7868687.html
https://www.cnblogs.com/fozero/p/7868687.html