Jump to content

Searching for 2 strings and removing them and data between them


dagnasty

Recommended Posts

I'm having a lot of trouble with this. My brain just fails when I start looking at expressions that do similar to these, regardless of the complexity. I'd very much appreciate some enlightenment.

I want to remove this sement of html (in this case a <TD>) that occurs multipletimes in a string...

<td class="vertTh"><a href="brwsearch.php?b=1&amp;c=201" title="More from this category">Video > Movies</a></td>

... the contents of the TD contain something new every in every instance but it contains the same opener and closer. (<td class="vertTh"> and </td>)

I suppose I'll be looking for both

<td class="vertTh"> and </td>

but I don't understand how to tell it to remove it completely.

Sorry about my poor explanation. It's 4 am and I'm going nuts.

Thanks to anyone willing to enlighten me! :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.