src/org/ohmage/util/StringUtils.java
public static boolean isValidEmailAddress(String emailAddress) {
		if(isEmptyOrWhitespaceOnly(emailAddress)) {
			return false;
		}
		
		return EMAIL_PATTERN.matcher(emailAddress).matches();
	}
/**
	 * Validates that an email address is a valid email address.
	 * 
	 * @param emailAddress The email address to be validated.
	 * 
	 * @return Returns false if the email address is null, whitespace only, or
	 * 		   not a valid email address; otherwise, true is returned.
	 */
Validates that an email address is a valid email address.

@param emailAddress The email address to be validated.

@return Returns false if the email address is null, whitespace only, or
not a valid email address; otherwise, true is returned.
Validates that an email address is a valid email address . @param emailAddress The email address to be validated . @return Returns false if the email address is null whitespace only or not a valid email address ; otherwise true is returned .
public static boolean isValidEmailAddress(String emailAddress) {
		if(isEmptyOrWhitespaceOnly(emailAddress)) {
			return false;
		}
		return EMAIL_PATTERN.matcher(emailAddress).matches();
	}
public static boolean isValidEmailAddress ( String emailAddress ) { if ( isEmptyOrWhitespaceOnly ( emailAddress ) ) { return false ; } return EMAIL_PATTERN . matcher ( emailAddress ) . matches ( ) ; }
Validates that an email address is a valid email address.
Validates that an email address is a valid email address .