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 = #Trim(CFHTTP.FileContent)#;
> imageStart =#Find("<img", output, 1)#;
> imageEnd = #Find(">", output, imageStart)#;
> imageLen = imageEnd - imageStart + 1;
> output = #Replace(output, Mid(output, imageStart, imageLen), "", "ONE")#;
></cfscript>
>
>This works great in removing the first image.
>
>My Question:
>
>How can I loop this some how to remove all images without knowing how many
>are on the page? Fortunatly there are only 1-3 per page. I've been racking
>my brain for hours over this one.. any takers?
It seems that you could use REReplace and a regular expression to strip out
any images, although it would take me a little work to come up with a
proper regex.
Now announcing my newly updated website
http://www.blivit.org/mr_urc/index.cfm
Resume: http://www.blivit.org/mr_urc/resume.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists