I am using this code to remove everything between this tag,however I can't make it happen. What am I missing here?
$str ='<tr class="main_row pc">
<td class="details">
<a href="./view/4135660/"><span class="p_t">Fiat Cinquecento </span></a>
<a class="info" href="./view/4135660/">(Info)</a><br>
<div class="attribs">16345, <span class="p_l">Blue</span>, Phone 6914576304
</div>
</td>
</tr>';
$str = preg_replace('#(<tr class="main_row pc">).*?(</tr>)#', '$1$2', $str);