angular validator field must equal to length code example Example: angular number validation ng-pattern="re"