Hello everyone. Next, I am doing a regular expression to accept the following: Word 02. Word and numbers, not just numbers. I'm using this code:
$(".inputNomeTurma").keyup(function() {
var valor = $(this).val().replace(/(([a-zA-Z]*\d{3,})|[!"#$%&'()*+ºª,-./:;<=>?@[\]_{|}])/,'');
$(this).val(valor);
});
Okay, if I click on a * character for example, it does the replace. But if I press and hold the *, the field accepts the special character.