I'm trying to make sure a cfscript if or for statement has no spaces in it.
if(someVar gt 0){
do this
}
I thought I had my regex workin, but it returns true on this:
<cfset str = 'with the staff (measure expressions, note articulations,'>
<cfset re = "[if|for]+\s+\(|\)\s+\{">
<cfoutput>#reFindNoCase(re, str)#</cfoutput>
That ain't good. WHat am I doin wrong?
Thanks,
Will
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308419
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4