我正在使用此代码删除此标签之间的所有内容,但是我无法实现。我在这里想念什么?
$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);