Check out his example.  Replace "<!--start top songs -->" with "<table>" and
"(Gretchen Lieberum)" with "</table>" to achieve what you wanted to do.
This example grabs some data from MP3.com.


- Dave


<CFHTTP method="GET" 
url="http://genres.mp3.com/music/jazz/" 
resolveurl="Yes"> 
</cfhttp> 

<CFSET COUNT = FindNoCase("<!--start top songs -->",CFHTTP.FILECONTENT) - 1>

<CFSET PAGE = RemoveChars(CFHTTP.FILECONTENT, 1, COUNT)> 


<CFSET End = FindNoCase("(Gretchen Lieberum)",PAGE) - 1> 
<CFSET PAGE = RemoveChars(PAGE, End, LEN(PAGE))> 


<cfoutput>#PAGE#</cfoutput> 



-----Original Message-----
From: Hassan Khawaja [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 1:27 PM
To: CF-Server
Subject: Re: Strip HTML tag?


Hi Mark,

On the same token, how do I take an entire HTML file
and only take out the content between say, <table> and
</table>, including the start and end table tags.

Thanks
Hassan

--- Mark Woods <[EMAIL PROTECTED]> wrote:
> use REReplace function...
> 
> <cfset StringWithoutHTML =
> REReplace(StringWithHTML,"<[^>]*>","","All")>
> 
> you'll find a good intro to regular expressions,
> including this example, in 
> the CF 4.0 docs (for some unknown reason, Allaire
> seem to have removed most 
> of the regular expression documentation from 4.5).
> http://www.allaire.com/documents/cf4/dochome.htm
> 
> 
> Mark
> 
> 
> At 03:44 PM 3/1/2001 -0800, you wrote:
> >Anyone have a good strip HTML format tag?  I need
> to strip all the HTML out
> >of a string.
> >
> >
> >- Dave
> >
> >Financial Interactive, Inc.
> >David Meyler
> >23 Grant Avenue  6th Floor
> >San Francisco, CA 94108
> >www.finteractive.com
> >
> >Phone : 415.901.2433
> >Fax:      415.901.2401
> >
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to