How to only allow alphanumeric using ng-pattern-restrict for first character only?
Update your regex to check for the empty string scenario. Example below:
^$|^[A-Za-z0-9]+
Plunker
Update your regex to check for the empty string scenario. Example below:
^$|^[A-Za-z0-9]+
Plunker