public static IsEmail ( string inputEmail ) : System.Boolean | ||
inputEmail | string | E-mail address to validate. |
return | System.Boolean |
public static Boolean IsEmail(string inputEmail)
{
if (H3Text.FixNull(inputEmail).Length < 6)
{
return (false);
}
else
{
string strRegex = REGEX_EMAIL;
Regex re = new Regex(strRegex);
if (re.IsMatch(inputEmail))
{
return (true);
}
else
{
return (false);
}
}
}