brianpercival
Programmer
I am testing a single digit number for the regular expression re1=/^\d+\.?\d{2}$/ and it fails. any thing greater than 2 digits, it works. Why is that?
Basically thisis supposed to be a check for a positive decimal number.
I want it to consider just integers too. What should I change it to?
regards,
Brian
Basically thisis supposed to be a check for a positive decimal number.
I want it to consider just integers too. What should I change it to?
regards,
Brian