예제 #1
0
 public static Boolean checkEmail(String emailValue)
 {
     String[] splitValueList = emailValue.Split('@');
     if (emailValue.Contains("@") && splitValueList[0].Length > 0 && splitValueList[1].Length > 0)
     {
         if (!ValidateInsertValue.hasSpecialChar(splitValueList[0]) && !ValidateInsertValue.hasSpecialChar(splitValueList[1]) && splitValueList[1].Contains("."))
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }