B
bas jaburg
Hi,
I need to know the regular expression that checks the whether a
1-decimal number has been entered. Also it needs to ok if no trailing
number before the decimal dot has been entered
So:
1.3 --> ok
1.0 --> ok
.1 --> ok
11.1 --> ok
1.11 --> not ok
I have this one [0-9]*\.?[0-9] but it does not do the .1 test
properly.
Thanks in advance.
Bas Jaburg
www.jaburg.com
I need to know the regular expression that checks the whether a
1-decimal number has been entered. Also it needs to ok if no trailing
number before the decimal dot has been entered
So:
1.3 --> ok
1.0 --> ok
.1 --> ok
11.1 --> ok
1.11 --> not ok
I have this one [0-9]*\.?[0-9] but it does not do the .1 test
properly.
Thanks in advance.
Bas Jaburg
www.jaburg.com