Wowee... in CF8, this works with a lookahead. 

<cfset str = '
<cfscript>
var rbo = "";
var someVar = "Will";
var someOtherVar = "Whatever";
Whateverelse logic here...
rbo = closeggObj();
rbo = "";
</cfscript>
'>

<cfset re = '(?!rbo\s=\s"";)\nvar\ssomeVar'>

<cfset result = REMatchNoCase(re, str)>

<cfdump var="#result#">

Returns an array:

1        var someVar 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:308563
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to