求个hh:mm:ss z 的正则表达式放在下面程序里用
String str;//正则表达式
Pattern p = Pattern.compile(str,Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);Matcher m = p.matcher(varvalue.getText());
String str;//正则表达式
Pattern p = Pattern.compile(str,Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);Matcher m = p.matcher(varvalue.getText());
Pattern p = Pattern.compile(str,Pattern.CASE_INSENSITIVE);
Matcher m = p.matcher("22:23:21");
if(m.find()){
System.out.println(m.group());
}else{
System.out.println("格式不对");
}
"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d"