Deepak Kumar Deepak Kumar - 2 months ago 5
jQuery Question

Regex pattern which accept only one char or a number group (decimal also)

I need to write a regex pattern which allow the user to enter a single character (A or a) or numbers

ex:- A or 94.50




which also avoids matching multiple leading zeros like 00.445

See the regex101