C# email validation
An email address is a string of a subset of ASCII characters separated into two parts by an @ symbol . The part before the @ sign is the local part of the address, and the part after the @ sign is a domain name to which the email message will be sent .
Trying to match these restrictions is a complex task, often resulting in long regular expressions. The .NET Framework regular expression classes are part of the base class library and can be used with any language or tool that targets the common language runtime, including ASP.NET and Visual Studio .NET.
Regex.IsMatch Method (String, String) - indicates whether the specified regular expression finds a match in the specified input string. The pattern parameter consists of various regular expression language elements that symbolically describe the string to match pattern . The following C# source code shows how to validate an email address with the help of regular expressions.