日期:2014-05-20 浏览次数:20861 次
if(inputStr.indexOf("\\d+")<0)
public static boolean isHasDigital(String checkStr) {
Pattern pattern = Pattern.compile("\\d+");
Matcher matcher = pattern.matcher(checkStr);
boolean match = matcher.find();
if (match) {
return true;
}
return false;
}