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
What about this:
^((?:[1-9][0-9]*)(?:\.[0-9]+)?)$
Match:
1 5 10 22 5000 1.0 10.10 123.456
No match:
0 00 007 0.0 0.000 0.50 0.01 5,432.10 1,234,567 10.
You could further lock it down to specific ranges, as explained here:
http://www.regular-expressions.info/numericranges.html