Return to Snippet

Revision: 56457
at March 29, 2012 05:45 by ezerick


Initial Code
//using System.RegularExpressions

MatchCollection EmailMatches = Regex.Matches(txtEmailAddress.Text,"([\\w-+\\.]+)@((?:[\\w]+\\.)+)([a-zA-Z]{2,4})",RegexOptions.Multiline);
Response.Write(EmailMatches.Count);

Initial URL
http://snipplr.com/login/

Initial Description
finds all of the alid email addresses in a string

Initial Title
Email Address regex in C#

Initial Tags

                                

Initial Language
C#