> Just to point out, on the off chance others do not realize it. > The provided regex will also accept a three digit year; 997 or 007. > This may or may not be a problem depending on the use.
Yes, RegExp aren't the perfect solution for that, maybe validating using a range of valid numbers could be a better approach. The validator allows this as well: http://www.massimocorner.com/validator/samples/custom_validation.htm ---------------------------- Massimo Foti Tools for ColdFusion and Dreamweaver developers: http://www.massimocorner.com ---------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231800 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

