Try changing your regex to:
^[A-Za-z0-9]+$
You have in your current regex |.* this is effectively "or any charachter (including whitespace)"
Try changing your regex to:
^[A-Za-z0-9]+$
You have in your current regex |.* this is effectively "or any charachter (including whitespace)"
For further actions, you may consider blocking this person and/or reporting abuse
Arinze Obieze -
Java para Iniciantes (Oracle) -
Armen Davtian -
Rachit Avasthi -
Top comments (0)