/ Published in: C#
from http://support.microsoft.com/kb/308252
Expand |
Embed | Plain Text
private static readonly string EmailAddressRegex = "(?<user>[^@]+)@(?<host>.+)"; Match emailMatch = regex.Match(LinkTarget.Text); if (emailMatch.Success) { //do something it was an email address //
You need to login to post a comment.
