If you just want to replace them, you can simplify. This will replace
all opening and closing tr, td or th tags with an empty string (CFMX+
only).

<cfset noHtml = reReplaceNoCase(htmlString, "</*t[rhd]\b.*?>", "",
"all")>

Pascal

> -----Original Message-----
> From: Jared Rypka-Hauer - CMG, LLC [mailto:[EMAIL PROTECTED]
> Sent: 18 May 2005 10:18
> To: CF-Talk
> Subject: Re: Strip end to end
> 
> Try something like this:
> <cfset noHtml = reReplaceNoCase(htmlString,
"</*t[rhd]\s*\w*=*""*\w*""*>",
> "", "all")>
> 
> Worked in my tests...
> 
> Laterz!
> J
> 
> On 5/18/05, Parker, Kevin <[EMAIL PROTECTED]> wrote:
> >
> > How do I identify TR and TD tags end to end for the purposes of
> > replacing them with alternative content.
> >
> > I am using CFSAVECONTENT to grab a section of a page and re-process
it.
> >
> > For example in my variable how do I identify <tr height=18 >
> > irrespective of its length and content and replace it with "" or
> > "something" or how do I identify <td colspan=2> again irrespective
of
> > length and content, and replace it with "" or "something".
> >
> > </TR> and </TD> tags aren't a problem of course.
> >
> > TIA!!!!
> >
> > ++++++++++
> > Kevin Parker
> > Web Services Consultant
> > WorkCover Corporation
> >
> 
> 
> 
> --
> ---------------
> -------------------------------------
> Buy SQLSurveyor!
> http://www.web-relevant.com/sqlsurveyor
> Never make your developers open Enterprise Manager again.
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207005
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to