Am I missing something here? Isn't the Left 2 of OL1 or OL2 'OL'? >Will said that it would be OL1, OL2, in which case your example wouldn never >eval to true. > >Will, something like this should work: > ><cfset isOLCourse = REFindNoCase("OL[0-9]+",ListLast(getsection.section, >"-"))> > >That looks for the letters OL followed by at least one number. >
> ><cfset isOLCourse = Left(ListLast(getSection.section, "-"), 2) is "OL"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276577 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4