Argentini.Halide.H3Identify.IsEmail C# (CSharp) Method

IsEmail() public static method

Uses RegEx to validate the format of an e-mail address.
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);
                }
            }
        }