中扬CRM客户关系管理系统
LSH
2023-10-09 26ebf71529e5ee4f70c4ad3ed52ea5e59c1b46e5
1
2
3
4
5
6
7
8
9
10
11
package com.zy.crm.manager.utils;
 
import java.util.regex.Pattern;
 
public class CarNumberUtils {
    private static final Pattern LICENSE_PLATE_PATTERN = Pattern.compile("^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}$");
 
    public static boolean isValidLicensePlate(String licensePlate) {
        return LICENSE_PLATE_PATTERN.matcher(licensePlate).matches();
    }
}