Regex empty string or number

70 views Asked by At

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.

How can I do it?

0

There are 0 answers