I'm having trouble creating a variable to validate my Login field.
For example, in my 'First Name' and 'Last Name' fields, I have this variable:
var padrao = /[^a-zà-ú]/gi;
In this way, if 'Name' or 'Last name' does not conform to that variable, that is, it can not contain numbers or special characters, only those of the variable, it gives an error message.
I want to do the same with my 'Login' field, I want it to be a variable that can not enter accents or special characters, just numbers and letters, uppercase or lowercase.
Could you help me in creating such a variable?