Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static bool EmailIsValid(string email)
- {
- const string expresion = "\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
- return IsMatch(email, expresion) && Replace(email, expresion, string.Empty).Length == 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement