车牌号正则

 isVehicleNumber(vehicleNumber) {
    var result = false
    if (vehicleNumber.length == 8) {
      
      var express = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/;
      result = express.test(vehicleNumber)
    }
    return result
  }

汉字(2)字母数字6位组合正则

var express = /^[\u4e00-\u9fa5]{2}[A-Z0-9]{6}$/

上一篇:c# 车牌号提取


下一篇:前端-常用正则表达式