Posted by emmerink on 12/09/06 04:58
Hi,
$xml = "tekst <title> twee </title>\n drie </tr> vier </td>";
$a_sSubject = trim($xml);
$a_sStart = '<title>';$a_sEnd = '<\/tr>';
$pattern = '/'. $a_sStart .'(.*?)'. $a_sEnd .'/';
preg_match_all($pattern, $a_sSubject, $result);
print_r($result);
results in:
Array
(
[0] => Array
(
)
[1] => Array
(
)
)
Any idea why there is no content in the result?
(expected to find the content in between <title> en </tr>)
Thanks for any help.
Navigation:
[Reply to this message]
|