Deepak Kumar Deepak Kumar - 1 year ago 83
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

Answer Source



which also avoids matching multiple leading zeros like 00.445

See the regex101

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download