i can get text from tags between </a></div>
and <div class="toolz">
. in result of that i have img
tag with <br />
after that.
for example:
<img alt="TEXT" title="TEXT"src="IMAGE LINK" /><br />
how to remove from that with preg_replace?
<meta charset='UTF-8' />
<?php
$handle='http://www.namefa.ir/Names.asp?pn=4&sx=M&fc=%D8%A2';
preg_match_all('/<\/a><\/div>(.*?)\s*<div[^>]+class="toolz"[^>]*>\s*/si', file_get_contents($handle), $matching_data);
$default = preg_replace('/<img[^>]*>(.*)\/><br />/is', "", $matching_data);
echo'<pre>';print_r($default);echo'</pre>';
?>