Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,4})$
- public bool ValidarEmail(String email)
- {
- String expresion;
- expresion = "^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,4})$";
- if (Regex.IsMatch(email, expresion))
- {
- if (Regex.Replace(email, expresion, String.Empty).Length == 0)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- else
- {
- return false;
- }
- }
- tucorreo-@hotmail.com
- tucorreo_@hotmail.com
- tucorreo_._@hotmail.com
- TUCORREO@hotmail.com
Add Comment
Please, Sign In to add comment