Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. public static bool EmailIsValid(string email)
  2. {
  3. const string expresion = "\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
  4. return IsMatch(email, expresion) && Replace(email, expresion, string.Empty).Length == 0;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement