<input name=x><input type=button onclick="if(/[@%&!*RG]/gi.test(x.value)) alert('Error')">@%&!*RG