House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Easy Regex question?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
This should be easy.
Che Vilnonis
03/12/10 04:26 P
Scratch that... I figured it out!
Che Vilnonis
03/12/10 04:30 P
Should be able to do this:
andy matthews
03/12/10 11:31 P
I tried it on:
Carol F
03/13/10 09:05 A
Rereplace(html, "<table>.*?</table>", "", "all')
Bobby Hartsfield
03/13/10 10:03 A
Carol, I used...
Che Vilnonis
03/15/10 09:00 A
Thanks Bobby and Che!
Carol F
03/15/10 12:04 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Che Vilnonis
03/12/2010 04:26 PM

This should be easy. How do I remove all text between <table></table> tags from a larger string? Thanks, Che

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Che Vilnonis
03/12/2010 04:30 PM

Scratch that... I figured it out! This should be easy. How do I remove all text between <table></table> tags from a larger string? Thanks, Che

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
andy matthews
03/12/2010 11:31 PM

Should be able to do this: REMatchNoCase('<table>[^>]+</table>', myString) do you mind sharing the solution please? > > Scratch that... I figured it out! > > This should be easy. > How do I remove all text between <table></table> tags from a larger string? > > Thanks, Che > > > >

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Carol F
03/13/2010 09:05 AM

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 <lists@commadelimited.com>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Bobby Hartsfield
03/13/2010 10:03 AM

Rereplace(html, "<table>.*?</table>", "", "all') Or Rereplace(html, "<table>[^>]+</table>", "", "all') 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 <lists@commadelimited.com>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Che Vilnonis
03/15/2010 09:00 AM

Carol, I used... reReplaceNoCase(myHTML, "<table.*?>.*?</table>", "", "ALL")> Rereplace(html, "<table>.*?</table>", "", "all') Or Rereplace(html, "<table>[^>]+</table>", "", "all') 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 <lists@commadelimited.com>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group

<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

July 31, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
         1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31