I need a better way to evaluate a string here. Maybe a regex I guess? 

I have a hyphen-delimited list. The last item in the list needs to be flagged 
if it contains OL1, OL2, etc. 

Just if it contains the OL at all, I need to flag it as an online course. 

Here's what I'm using now, what's a better way to handle it? 

<cfif ListLast(getSection.section, "-") CONTAINS "OL">
 <cfset isOLCourse = true>
</cfif>

Thanks,
Will

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276493
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to