Regular Expression
Hi I have a textbox which can accept the following:
- Floating point number between 0 and 1
- It can go ONLY up to 2 decimal places(so either one decimal or two decimal.
- Will accept plain 0 or 1 without decimal
- Will not accept anything above 1.0, so it will not be able to accept 1.01.
how can I write a regular expression for this? Please help me. Thank you.
Sanch
|