Page 1 of 1

Help with removing a big chunk of html

Posted: Fri Mar 20, 2015 8:47 pm
by ikehook
Hello, I'm not very good at this. I'm trying to remove everything between

<tableXXXX>
remove this junk
<table/>

Or really between any html tags like

<p>
or this junk
<p/>

<td>
remove this
<td/>

I can't seem to get the content out, I did it once when it was all in a <tr> tag but everything I try with the other tags fails.

I just want to remove the old data and import new data into the same spot between the tags.


Thanks in advance for your help.

Re: Help with removing a big chunk of html

Posted: Mon Mar 30, 2015 12:08 pm
by DigitalVolcano
Would something like this help?

RegEx:

Code: Select all

<td>.*?<td/>
Replace:

Code: Select all

<td>New text</td>
You need the 'dot matches newline' option turned on if your tags span more than one line