private boolean checkUuid(String uuid){
boolean isUuid = false;
if (uuid.matches("(\\w{8}(-\\w{4}){3}-\\w{12}?)"))
return true;
return isUuid;
}
private boolean checkUuid(String uuid){
boolean isUuid = false;
if (uuid.matches("(\\w{8}(-\\w{4}){3}-\\w{12}?)"))
return true;
return isUuid;
}
转载于:https://my.oschina.net/yygh/blog/711260