Hi,
$xml = "tekst <titletwee </title>\n drie </trvier </td>";
$a_sSubject = trim($xml);
$a_sStart = '<title>';$a_sE nd = '<\/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 <titleen </tr>)
Thanks for any help.
$xml = "tekst <titletwee </title>\n drie </trvier </td>";
$a_sSubject = trim($xml);
$a_sStart = '<title>';$a_sE nd = '<\/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 <titleen </tr>)
Thanks for any help.
Comment