yes. i am sure about that. I have CF8. I think i found out what the
problem is. Some of the img tags have no double quotes in them... like
this.. <img src=/img/jjj.gif> instead of  <img src="/img/jjj.gif">

On Dec 29, 2007 1:08 AM, Dan Vega <[EMAIL PROTECTED]> wrote:
> are you sure your on CF8? REMatchNoCase is a cf8 function?
>
>
>
> On Dec 29, 2007 12:53 AM, Web Exp <[EMAIL PROTECTED]> wrote:
> > 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>
> >
>
>
>
>
> --
> Thank You
> Dan Vega
> [EMAIL PROTECTED]
> http://www.danvega.org

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:295514
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