regular expression for Capacity of vechile

0
 how create regular expression for capacity of vehicle so that in Input Field  of Capacity should be in tons. only numbers are allowed to enter in input filed.
asked
1 answers
1

Hi Depashikha,

This regex may be of help,

^\d+(\.\d+)?$

Let me know, if you have any issues,

Hope it helps

answered