如题.
2.代码
Pattern pattern = Pattern.compile("^([a-z]+|[A-Z]+|[0-9]+)$"); Matcher m = pattern.matcher("fwefw"); System.out.println(m.matches());
Pattern pattern = Pattern.compile("^([a-z]+|[A-Z]+|[0-9]+)$"); Matcher m = pattern.matcher("fwefw"); System.out.println(m.matches());