I am trying to get an angular ng-pattern to check that a username has no whitespaces or special characters. The following form return false if you enter whitespaces or special c
Try the following pattern:
/^[a-zA-Z0-9]*$/
This allows only alphanumeric characters.