A field should accept numbers between 1-100 including decimal.

akhila13
Tera Expert

A field should accept numbers between 1-100 including decimal. Can anyone share the regular expression for this

7 REPLIES 7

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Please use the below regex it will support upto two decimal.

 

^(10|\d)(\.\d{1,2})?$

 

Please mark answer correct/helpful based on Impact.

it should accept numbers between 1 to 100

^(100|\d)(\.\d{1,2})?$

 

Please mark answer correct/helpful based on Impact.

When i provide the value as 22.22 its showing error