using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
namespace read_test
{
    class StringCheck
    {
        static void Main(String [] args)
        {
            string email = "email@email.com";
        string regEx = @"\w+\.?\w+\@{1}\w+\.{1}\w+";
        Match aMatch;
        aMatch = Regex.Match(email, regEx);
        if (aMatch.Success)
            Console.WriteLine("Successfull.");
        else
            Console.WriteLine("Not Successfull");
        Console.Read();
    }
}
}
tried writing a regular expression to check if the email id entered is valid. Is this right? Or is there a better way
 
    