public static boolean isEmail(String str) {
// TODO Auto-generated method stub
String tegex="[a-zA-Z0-9_]+@\\w+(\\.com|\\.cn){1}";
boolean flag=str.matches(tegex);
return flag;
}
java邮箱格式校验
猜你喜欢
转载自blog.csdn.net/xiyangyang8110/article/details/125517617
今日推荐
周排行