I'm continuing to cleanup a mess of a site at my workplace and am almost done adding validation, I have this one issue remaining.
I have a number that is set by default to 100.0. I need to allow input from 0.1 to 100.0. I currently have an expression that works but allows 0 and 0.0 and 00.0, and these values crash my program. Here is my current expression:
^(\d{0,2}(\.\d{1})?|100(\.0?)?)$
The current expression allows numbers such as 0.2 .2 and 00.2, that is fine, I just can't have it accept 00.0, 0.0 and 0.
Again, this is numbers only, one or no decimals, and 0.1 to 100.0.
Thanks for your help.