I want to set regular expression decimal value less than 1 and greater than 0..
i use this { ^\d+\.\d{0,2}$ } but it takes value like 0.50, 0.75, 1.25, 20.50.....
but i want below 1.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manav PandyaRank #166 · 14.3K reputationPosted Mar 21, 2018, 11:39 PM EDT
Shivam Dixit46 reputationPosted Mar 22, 2018, 1:20 AM EDT