Hi there,
I am using preg_match across multiple lines. It is working fine, but I have run into an issue where it does not know where to stop.
This is the text I want to retrieve:
<td class="details_header" width="100px" valign="top" nowrap="nowrap">prod</td><td>data1
<br />
data2 <br />
data3 <br />
</td>
The code I am using is:
preg_match('|<td class="details_header" width="100px" valign="top" nowrap="nowrap">prod</td><td>(.*)</td>|ims', $content, $match1);
but it will go right till the end of the html file.
Any ideas?
Many thanks!