Guest_imported
New member
- Jan 1, 1970
- 0
I'm new to PHP and need a little guidance on extracting specific sections of a webpage. The sections begin and end with specific HTML tags. And I need to copy everything in between the tags for later processing. But there are two problems. First, the number of "sections" on a page can vary. And second, how to formulate a regular expression that will identify the opening tag, and extract everything between it and the closing tag. For example:
...other HTML
<td align=left valign=middle>
extract
whatever
is
here
<td valign=middle align=center>
...other HTML
<td align=left valign=middle>
extract
whatever
is
here
<td valign=middle align=center>
...other HTML
Any suggestions to get me started would be appreciated.
...other HTML
<td align=left valign=middle>
extract
whatever
is
here
<td valign=middle align=center>
...other HTML
<td align=left valign=middle>
extract
whatever
is
here
<td valign=middle align=center>
...other HTML
Any suggestions to get me started would be appreciated.