[thelist] regex help
Theodore Serbinski
tserbinski at washsq.com
Mon Sep 20 09:36:23 CDT 2004
hey all! i'm working on form validation for numerical timesheet values
but i can't seem to get the regex right to test the values. what i have
right now is:
/^([012]?[0-9]\.[0-9])?$/
i'm trying to test for all values in this range:
0.0 - 24.0
with these stipulations:
- an empty string is ok, treated as 0 by the script anyways
- only one decimal place allowed, which is optional
any help is appreciated, i'm still really new at these regexes. thanks!
ted
More information about the thelist
mailing list