public static boolean isValidEmail(String email){
  Matcher matcher=validEmailPattern.matcher(email);
  return matcher.find();
}

public static boolean isValidEmail ( String email ) { Matcher matcher = validEmailPattern . matcher ( email ) ; return matcher . find ( ) ; }
check if word contains an email address
