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
Try this: ^([1-9]+).\d+$ This requires you to enter at least 1 digit from 1-9
Or ^([1-9]).\d$ This does not require you to enter anything but does restrict what you enter as 1-9