Deepak Kumar Deepak Kumar - 7 months ago 30
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