Yes. I am reading a html file. I changed the first regular expression
like this:
<cffile action="read" file="#expandPath('homepage.html')#"
variable="htmldoc">
<!--- return an array of image tags --->
<cfset images = REMatchNoCase("<img([^>]*[^/])>", htmldoc)>
This gives me a cfdump of all img tags. but the next few lines are
doing something that results in an empty array at the end.
But now I am getting a CF error:
The element at position 1 of dimension 1, of array variable "IMGPATH,"
cannot be found.
The error occurred in C:\regexp.cfm: line 17
15 : <cfloop array="#images#" index="i">
16 : <cfset imgpath = REMatchNoCase(""".*""", i)>
17 : <cfset imgpath = replace(imgpath[1],"""","","all")>
18 : <cfset tmp = structNew()>
19 : <cfset tmp.path = imgpath>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295513
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4