复制代码 代码如下:
public static boolean isUrl (String pInput) {
if(pInput == null){
return false;
}
String regEx = " ^([0-1]{1}d|2[0-3]):([0-5]d)$";
Pattern p = Pattern.compile(regEx);
Matcher matcher = p.matcher(pInput);
return matcher.matches();
}



