I'm trying to extract some information from a website.
There is a section looking like that:
<th>Some text here</th><td>text to extract</td>
I would like to find (with regexp or other solution) the part starting with some text here
and extract the text to extract
from that.
I was trying to use following regexp solution:
$reg = '/<th>Some text here<\/th><td>(.*)<\/td>/';
preg_match_all($reg, $content, $result, PREG_PATTERN_ORDER);
print_r($result);
but it gives me just empty array:
Array ( [0] => Array ( ) [1] => Array ( ) )
How should I construct my regular expression to extract wanted value? Or what other solution can I use to extract it?