Tuesday, October 8, 2013

validate Email server side code

 validate Email server side code   

public static bool validateEmail(string mail)
    {
        string expression = @"^[a-z][a-z|0-9|]*([_][a-z|0-9]+)*([.][a-z|" + @"0-9]+([_][a-z|0-9]+)*)?@[a-z][a-z|0-9|]*\.([a-z]" + @"[a-z|0-9]*(\.[a-z][a-z|0-9]*)?)$";

        Match match = Regex.Match(mail, expression, RegexOptions.IgnoreCase);
        if (match.Success)
        {
            return true;
        }
        else
            return false;

    }


If you are searching life partner. your searching end with kpmarriage.com. now kpmarriage.com offer free matrimonial website which offer free message, free chat, free view contact information. so register here : kpmarriage.com- Free matrimonial website

0 comments:

Post a Comment