java验证国外手机号码,也就是只有加号和数字
public static boolean isForeignMobileNO(String mobiles){
boolean flag = false;
try{
Pattern p = Pattern.compile(“^[\\d+]+$”);
Matcher m = p.matcher(mobiles);
flag = m.matches();
}catch(Exception e){
flag = false;
}
return flag;
}