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 .
The above email address feedback is the local part and net-informations.com is the domain name to which the email message will be sent .
Here we are going to implement a regular expression pattern to validate email address. A regular expression is a pattern describing a certain amount of text. 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 ASP.NET program shows how to validate an email address with the help of regular expressions.
Click the following links to see full source code