in reply to Matching string containing values between 0 and 100 inclusive

"7.8" is in between. Did you mean to include it?
Is "02" allowed?

Replies are listed 'Best First'.
Re^2: Matching string containing values between 0 and 100 inclusive
by graff (Chancellor) on Mar 18, 2009 at 06:05 UTC
    Good point. Based on the problem description as given in the OP, it looks like there should be a range of values accepted between 9 and 10, as well as between 99 and 100.

    (Oops... if the instructor who handed out the homework was expecting that little detail to turn it into a "trick question", I probably just gave away the surprise.)

    Helpful hint for the truly ambitious student: get extra credit by making sure the regex covers e and π as well -- both of them are in the specified range. ;)