code: public static boolean isValidEmailAddress(String email, boolean strict)
      {
          Pattern p = strict ? strictEmailPattern : laxEmailPattern;
          return p.matcher(email).matches();
      }
docs: Returns <CODE>true</CODE> if the given string is a valid email address.
  @param email The email address to be checked
  @param strict <CODE>true</CODE> if strict rules should be applied when checking the email address
  @return <CODE>true</CODE> if the given string is a valid email address