Thanks Dan... i tried your code... all i getting in the cfdump is an empty array. Any ideas?
On Dec 28, 2007 11:32 PM, Dan Vega <[EMAIL PROTECTED]> wrote: > I know some regex people are going to jump all over this but I really don't > know regex.. Try this on 8 with a html page in the same directory, It will > give you an array of structures with information about the images in a html > document. > > <html> > <head> > <title>RegEx PlayGround</title> > </head> > > <body> > > <!--- read the html file ---> > <cffile action="read" file="#expandPath('homepage.html')#" > variable="htmldoc"> > <!--- return an array of image tags ---> > <cfset images = REMatchNoCase("<img[^>]*/>", htmldoc)> > > <cfset files = arrayNew(1)> > <cfloop array="#images#" index="i"> > <cfset imgpath = REMatchNoCase(""".*""", i)> > <cfset imgpath = replace(imgpath[1],"""","","all")> > <cfset tmp = structNew()> > <cfset tmp.path = imgpath> > <cfset tmp.filename = listLast(imgpath,"/")> > <cfset tmp.fileExtension = right(imgpath,3)> > <cfset tmp.filetype = "image"> > <cfset arrayAppend(files,tmp)> > </cfloop> > > <cfdump var="#files#"> > > </body> > </html> > > On Dec 28, 2007 6:33 PM, Claude Schneegans <[EMAIL PROTECTED]> > wrote: > > > >>any other ideas > > > > Don't ask me ;-) > > > > -- > > _______________________________________ > > REUSE CODE! Use custom tags; > > See http://www.contentbox.com/claude/customtags/tagstore.cfm > > (Please send any spam to this address: [EMAIL PROTECTED]) > > Thanks. > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:295511 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4