The AngularJS ng-pattern directive is used validate input control against specified pattern. The ng-pattern adds the pattern validator to ng-model.
Syntax
Special character not allowed