I am using this code to block special characters, but it is also blocking in the email field. How do I solve it? or as I allow. " e _
$(function(){
var regex = new RegExp('[^ 0-9a-zA-Zàèìòùáéíóúâêîôûãõ\b-]', 'g');
// repare a flag "g" de global, para substituir todas as ocorrências
$('input').bind('input', function(){
$(this).val($(this).val().replace(regex, ''));
});
})