regexp/licencePlateNumber.js

/**
 * 车牌号校验
 * @author xiaoxiaohuayu <https://github.com/xiaoxiaohuayu>
 * @category regexp
 * @alias yd_regexp_licencePlateNumber
 * @returns {RegExp} 返回车牌号正则
 * @summary /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/
 */
export default () => {
    return /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/;
};