All table rows in this table
Posted: Fri Jul 27, 2007 4:39 am
I am getting a XLS report from this affiliate but of course they can't give me something like a CSV, no they give me a HTML page. Yay.
So to get this data out I am looking to use regex to get all the data in that table then I can go through the table rows and get my data. So I need a bit of help writing this expression.
Here is the beginning and end of the table:
I have tried a few patterns but to no avail. Here is what I thought should work but does not:
so if anyone can help me get that information that would be fantastic.
So to get this data out I am looking to use regex to get all the data in that table then I can go through the table rows and get my data. So I need a bit of help writing this expression.
Here is the beginning and end of the table:
Code: Select all
<table cellspacing="0" border="0" id="ctl00_ContentPlaceHolder1_dgStats_ctl01" style="width:100%;border-collapse:collapse;table-layout:fixed;overflow:hidden;empty-cells:show;">
...
</tbody>Code: Select all
preg_match('#<table [.]+>[.]+</tbody>#mis', $info, $matches);
dump($matches);