The following will validate stringVariable to see if it matches an email pattern.
System.Text.RegularExpressions.Regex.IsMatch(stringVariable, "\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*");
There are double \ due to the language being C#.
Last Modified:
4/28/2008 6:13:14 AM