You are on page 1of 1

//Validar Email public static bool validarEmail (string email ) { string expresion = "\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*" ; if ( Regex .

IsMatch ( email , expresion )) { if ( Regex . Replace ( email , expresion , String . Empty ). Length == 0) { return true; } else { return false; } } else { return false ; } }

You might also like