CafeProject.GarsonGuncellemeEkrani.fncMailFormat C# (CSharp) Метод

fncMailFormat() публичный статический Метод

public static fncMailFormat ( string mail ) : bool
mail string
Результат bool
        public static bool fncMailFormat(string mail)
        {
            Regex regex = new Regex(@"^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$");
            Match match = regex.Match(mail);
            if (match.Success)
                return true;
            else
                return false;
        }