It's like lighting up a cigerette right as your meal comes... I figured it
out (but am open to a better solution is anyone has one...)
cfloop condition="#Find("img", output, 1)#"
cfscript
imageStart =#Find("img", output, 1)#;
imageEnd = #Find("", output, imageStart)#;
imageLen = imageEnd -
Steve,
Why not try something easier:
cfscript
output = Trim(CFHTTP.FileContent);
output = REReplaceNoCase(output, "img[^/]+[/]?", "", "all");
/cfscript
Best,
Seva Petrov
Senior Developer
TheSquare.com
-Original Message-
From: Steve Reich [mailto:[EMAIL PROTECTED]]
Sent:
REreplace(page,"img.*[^]","","ALL")
or something???
Justin
-Original Message-
From: Steve Reich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 5:44 PM
To: CF-Talk
Subject: Parsing Headache (Removing Multiple Images)
OK.. I am writing a tag with CFHTTP to blah, blah,
Steve
Try:
cfhttp method="get" URL="http://apple.excite.com/"
cfset cleanText = ReReplaceNoCase(CFHTTP.FileContent, "IMG[^]*",
"", "ALL")
cfoutput#cleanText#/cfoutput
HTH
Dick
At 12:44 PM -0500 2/14/01, Steve Reich wrote:
OK.. I am writing a tag with CFHTTP to blah, blah, blah... it works
At 12:44 PM 2/14/01 -0500, you wrote:
OK.. I am writing a tag with CFHTTP to blah, blah, blah... it works fine.
Now I want to port my application to the Palm Pilot so I want to remove the
images from the output. Here's my line of thinking at the moment...
cfscript
output =
5 matches
Mail list logo