I tried it on:
   <html><head></head><body>text<table>whatever</table></body></html>
but it's returning this string in an array
   <table>whatever</table>
instead of
   <html><head></head><body>text<table>whatever</table></body></html>

I guess I can do
   arrTable = reMatchNoCase('<table>[^>]+</table>', myString);
   for(a=1; a <= arrayLen(arrTable); a++){
       myString = replace(myString, arrTable[a], "");
   }

but is there an easier way?


On Fri, Mar 12, 2010 at 8:29 PM, andy matthews <[email protected]>wrote:

>
> Should be able to do this:
>
> REMatchNoCase('<table>[^>]+</table>', myString)
>
>
> -----Original Message-----
> From: Carol F [mailto:[email protected]]
> Sent: Friday, March 12, 2010 6:52 PM
> To: cf-talk
> Subject: Re: Easy Regex question?
>
>
> do you mind sharing the solution please?
>
> On Fri, Mar 12, 2010 at 1:28 PM, Che Vilnonis <[email protected]> wrote:
>
> >
> > Scratch that... I figured it out!
> >
> > -----Original Message-----
> > From: Che Vilnonis [mailto:[email protected]]
> > Sent: Friday, March 12, 2010 4:25 PM
> > To: '[email protected]'
> > Subject: Easy Regex question?
> >
> > This should be easy.
> > How do I remove all text between <table></table> tags from a larger
> string?
> >
> > Thanks, Che
> >
> >
> >
> >
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331723
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to