I want to validate that a number with three optional integer and four digits mandatory after the decimal point is greater than 1. For example:
0.0000 [No]
0.9999 [No]
1.0000 [No]
1.0009 [Yes]
01.0000 [No]
01.0009 [Yes]
001.0000 [No]
011.0000 [Yes]
222.0000 [Yes]
000.9999 [No]
I have been created this regex:
(?!^1*$)(?!^1*\.0*$)^(?:[1-9]|\d\d\d)(?:\.\d{4,4})$
But it doesn't work for all the cases