Reputation: 21
Here is my ng-pattern= "/^[0-9]+(.[0-9][0-9])?$/i" which will allow only any digits and decimal followed by 2 digits, but I want it to match empty string too.
ng-pattern= "/^[0-9]+(.[0-9][0-9])?$/i"
How can I do it?
Upvotes: 0
Views: 68