andrew4582

IsValidEmail

Nov 3rd, 2010
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1.         public static bool IsValidEmail(string strEmail)
  2.         {
  3.             Regex regex = new Regex(@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*", RegexOptions.Singleline | RegexOptions.IgnoreCase);
  4.             return regex.IsMatch(strEmail);
  5.         }
Advertisement
Add Comment
Please, Sign In to add comment