Posted on: 9/18/2006 3:50:32 PM | Views : 828

Hello,
I am trying to create a regular expression to only accept numbers between 0 and 100 with no more than two decimal places.  Also,  The user SHOULD NOT be allowed to enter 0.  They could enter 0.01 and above up to 100 but they cannot enter 0 or 0.0 or 0.00.  I was able to find a regular expression which actually accepts between 0 and 100, and no more than 2 decimal places.  But, it will accept 0.  Here is the regular expression that I have : "^(100(?:\.0{1,2})?|0*?\.\d{1,2}|\d{1,2}(?:\.\d{1,2})?)$".  If you could help me with this issue. I really appreciate it. Thank you so much.
 Sanch
 

Go to the complete details ...