车牌不区分大小写
const validatelicensePlate = (rule, value, callback) => { if (!value) { callback(new Error("请输入车牌号码")); } else { let dvalue = value.toLocaleUpperCase(); if ( !/^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/.test( dvalue ) ) { callback(new Error("请输入正确的车牌格式")); } } };