/ Published in: C#
URL: http://snipplr.com/login/
finds all of the alid email addresses in a string
Expand |
Embed | Plain Text
//using System.RegularExpressions MatchCollection EmailMatches = Regex.Matches(txtEmailAddress.Text,"([\\w-+\\.]+)@((?:[\\w]+\\.)+)([a-zA-Z]{2,4})",RegexOptions.Multiline); Response.Write(EmailMatches.Count);
You need to login to post a comment.
