如题.
2.代码.
Pattern pattern = Pattern.compile("^([A-z]{3}).*$"); Matcher m = pattern.matcher("SKU12"); System.out.println(m.matches());
Pattern pattern = Pattern.compile("^([A-z]{3}).*$"); Matcher m = pattern.matcher("SKU12"); System.out.println(m.matches());