I use this regex for my field:
/^([1-9]([0-9]){0,3}?)((\.|\,)\d{1,2})?$/;
What I want to do is to allow the user to enter 0 as a beginning of the number, but in this cas, he must enter at least a second digit diffrent from 0 and the same rule is applied for the third and fourth digits.
Example:
- 01 -> valid
- 00 -> not valid
- 0 -> not valid
- 1 -> valid
In short, zero value must not be allowed. How can I do this using Regex? or would it be better if I just do it with a javascript script?