日期:2014-05-20 浏览次数:20675 次
String str="6:15"; Pattern pattern = Pattern.compile("([01]\\d|2[0-3]):[0-5]\\d"); Matcher isNum = pattern.matcher(str); if (isNum.matches()) { return true; }