private
boolean
isMail(String str){
String check = " ^([a-z0-9A-Z]+[-|//._]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?//.)+[a-zA-Z]{2,}$ " ;
Pattern regex = Pattern.compile(check);
Matcher matcher = regex.matcher(str);
boolean isMatched = matcher.matches();
if (isMatched){
return true ;
} else {
return false ;
}
}
String check = " ^([a-z0-9A-Z]+[-|//._]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?//.)+[a-zA-Z]{2,}$ " ;
Pattern regex = Pattern.compile(check);
Matcher matcher = regex.matcher(str);
boolean isMatched = matcher.matches();
if (isMatched){
return true ;
} else {
return false ;
}
}