Pattern.compile("(?i)[a-z]").matcher(s).find()
没怎么看懂,求解释
------解决方案--------------------
(?i) 忽略大小写
[a-z] 匹配 a到z
String s="34aBDcD";
Matcher m = Pattern.compile("(?i)[a-z]").matcher(s);
while(m.find()){
System.out.println(m.group());
}
Pattern.compile("(?i)[a-z]").matcher(s).find()
String s="34aBDcD";
Matcher m = Pattern.compile("(?i)[a-z]").matcher(s);
while(m.find()){
System.out.println(m.group());
}