校验手机号码:/^(13|15|17|18|14)[0-9]{9}$/
固定电话或手机号码:/((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/
邮箱:/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/
6到18位字符:/^[^\u2E80-\u9FFF]{6,18}$/
昵称:/^[0-9a-zA-Z\u2E80-\u9FFF]+$/
邮编:/^[1-9][0-9]{5}$/
4位验证码:/^[a-zA-Z0-9]{4}$/
网友评论