hi,
$html = preg_replace ("'<table>.*?</table>'si","",$html);
how do i replace only once with the above statment (or a similar stament). THanks.
Well, you could read the manual entry for [man]preg_replace()[/man] Hint: What's that optional fourth parameter for I wonder? :rolleyes:
thanks,
but was unsucessful.
is there something wrong with my syntax ?
html = preg_replace ("'<table>.?</table>'si","",$html,'1'); i also tried html = preg_replace ("'<table>.?</table>'si","",$html,1);
thanks.