How can I exclude the 0 input in this regex? The user should be able to enter any number... but not the zero
^([0-9]*|\\d*\\.\\d{1}?\\d*)$
Than
You just need to change the: * [0-9] for [1-9] * /d for [1-9]
Original: ^([0-9]*|\d*\.\d{1}?\d*)$
^([0-9]*|\d*\.\d{1}?\d*)$
Solution: ^([1-9]*|[1-9]*\.[1-9]{1}?[1-9]*)$
^([1-9]*|[1-9]*\.[1-9]{1}?[1-9]*)$
\d is [0-9]