The list showed me this so I'll pass it on, as matter of fact you've asked
both questions I just recently asked.


-----------------------From s@njeevi--------------------

<CFSET startpos = FindNoCase("<start_tag>", Counter) + 10>
<!----- here U are adding 10 becoz from the 10th position onwards U want to
extract the data ie after the > in <start_tag>

<CFSET endpos = FindNoCase("</end_data>", Counter, startpos)>

<CFSET data_to_extract =TRIM(Mid(Counter, startpos, endpos - startpos))>

may be U can run this in a look to get all the occurance of <Start_tag> and
<end_tag>

I suggest U use
<!--<data_to_extact> what ever data that is to be extracted
</data_to_extract>-->
instead of <start_data> and <end_data>
becoz by using the <!-- it is a HTMl comment and the Browser does  not
interpret it but the CF reads it.

So that way it is safe and there is no chance of having any unnecessary data
on the screen by using personalised uncommented tags.


----- Original Message -----
From: Hassan Khawaja <[EMAIL PROTECTED]>
To: CF-Server <[EMAIL PROTECTED]>
Sent: Friday, March 02, 2001 3:27 PM
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