Hi there!
I am trying to read all the <td>..</td> blocks from a webpage (to convert it to a db-driven site)
I don't really understand preg, but I thought this would come in very handy.
At first it seemed to work, but now i get strange results.
What I am doing wrong here?
I have a feeling that I am making things very complicated
I am trying to read all the <td>..</td> blocks from a webpage (to convert it to a db-driven site)
I don't really understand preg, but I thought this would come in very handy.
At first it seemed to work, but now i get strange results.
What I am doing wrong here?
Code:
$voidstring=preg_match_all('/<td([^`]*?)<\/td/i',$buffer,$tds);
foreach ($tds as $a) { ...etc