https://github.com/aipocom/aipo/blob/master/core/src/main/java/com/aimluck/commons/utils/ALStringUtil.java
Aipo自前のメールアドレスのバリデートメソッドはこちらです。
/**
* メールアドレス形式であるかを判定します。
*
* @param argStr
* チェック対象文字列
* @return メールアドレス形式であればtrue、それ以外はfalse。
*/
public static boolean isMailAddress(String str) {
Pattern mailPattern =
Pattern.compile(
"[\w\.\-\+]+@([\w\-]+\.)+[\w\-]+",
Pattern.CASE_INSENSITIVE);
Matcher objMch = mailPattern.matcher(str);
return objMch.matches();
}Docomoとかだと、RFC準拠でないメールアドレス形式も登録できてしまったりするため、自前のメールアドレスチェックメソッドを用意しています。


