Thanks Michael, that did the trick just fine. -----Original Message----- From: Dawson, Michael [mailto:[EMAIL PROTECTED] Sent: 09 September 2005 18:19 To: CF-Talk Subject: RE: Simple Regular Expression?
I'm not sure if someone already answered this, but you should anchor the start and end of the strings. This pattern might do it, but it's not tested: "^(0|5|10|15|20|25|30|35|40|45|50)$" M!ke ---- I am using the cfinput tag, validate="regular_expression" and I am totally confusing myself on trying to work out what the pattern should equal. Basically I want the user to only be allowed to enter one of the following values 0,5,10,15,20,25,30,35,40,45,50 They cannot enter anything else i.e. 55 I tried using the following pattern "(0|5|10|15|20|25|30|35|40|45|50)" but I do not think I an fully understanding this as part of the validation works but it also allows 55 to be entered, I think that is because the individual value 5 is allowed? Can anyone give me some pointers? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217914 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54