[thelist] regex help
Joshua Olson
joshua at waetech.com
Mon Sep 20 10:43:42 CDT 2004
> -----Original Message-----
> From: Joshua Olson
> Sent: Monday, September 20, 2004 10:46 AM
> So, here's what you had, but incorporating the new logic:
>
> ^([012]?[0-9](\.[0-9])?)?$
Here's a better one (aka, it doesn't allow 25-29):
^(([01]?[0-9]|2[0-4])(\.[0-9])?)?$
If you don't want to allow input such as 09.1, then use the following:
^(([1]?[0-9]|2[0-4])(\.[0-9])?)?$
<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168
More information about the thelist
mailing list