Deeksha
Deeksha

Reputation: 21

Regex empty string or number

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?

Upvotes: 0

Views: 68

Answers (0)

Related Questions