Jump to content

Extracting content from a TABLE


Yesideez

Recommended Posts

Hi,

 

I have a page of HTML and inside this page is a TABLE and it's this table I need to extract some data from.

 

<th>Proxy:</th><td><span class="red">Confirmed proxy server.</span> (<a href="/proxy-server">Read about proxy servers</a>)</td>

 

The first TH cell will always have that content but I need to extract everything between the next TD cell including the HTML. I can strip any HTML out myself if present, just needing help with Regex as I have no clue whatsoever about this as I just cannot get my head around it and I've spent hours!

 

Any help with this would be gratefully appreciated.

Link to comment
https://forums.phpfreaks.com/topic/219800-extracting-content-from-a-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.