I have a requirement for non negatives that should be greater than 0 (zero), allow any povitive number and allow this ##.## format also. I tried with
^\d+(\.\d{1,2})?$
This should allow bellow formats..
00.10
0.1
00.1
122222
and it should be prohibit
0,
00.00,
000000,
10.1111
It’s supporting all my requirements, but it allows all zeros too. So it should be prohibited to enter only digits which are zero, including a single zero in a text box.
Thanks in Advance
This worked for your example in VI editor:
If you are not trying in VI, then you might have to remove the escaping characters (
\)