Skip to content

Instantly share code, notes, and snippets.

Created November 5, 2017 02:59
public void Validar(Object sender, EventArgs e)
{
var email = EntryEmail.Text;
var emailPattern = "^([\\w\\.\\-]+)@([\\w\\-]+)((\\.(\\w){2,3})+)$";
if (!String.IsNullOrWhiteSpace(email) && !(Regex.IsMatch(email, emailPattern)))
{
LabelError.Text = "EmailVerification Failed";
}
else
{
LabelError.Text = "";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment