I have a set of requirements that claim that the input should be verified as follows:
- 1 to 7 characters
- Numeric
- More than 0
- and allow decimal point
I currently have ^(?!0{1,7}$)(\d+(\.\d)?){1,7}$
But this does not limit the total string to a maximum of 7 characters.
Paddy source
share