Possible Duplicate:
How to parse and process HTML with PHP?
I have HTML document which contains many records with following format:
<tr><td>af</td><td>Afrikaans</td></tr>
Please, tell me, how can I extract “af” and “Afrikaans” using regular expression? Thank you.
This is just a simple example to get you started, but depending on the structure of the HTML you will need to make some tweaks:
See also, the
DOMDocumentdocumentation