Java tutorial
//package com.java2s; import java.util.regex.Pattern; public class Main { public static boolean checkPlateNumber(String plateNumber) { String regex = "^[\u4e00-\u9fa5|WJ]{1}[A-Z0-9]{6}$"; return Pattern.matches(regex, plateNumber); } }