<tr>
        <td width="300" bgcolor="#cccccc" style="text-align: right;">
         <strong>   Sometext<br />
         </strong>
        </td>
        <td width="125" bgcolor="#009900" style="text-align: center;">
         <strong><span style="color: rgb(255, 255, 255);">
          <span style="font-size: larger;">Pricetoreplace</span>
          </span>
         </strong>
        </td>
    </tr>
I need to remove whole <tr>....</tr> row, if it contain the "Pricetoreplace" text in it.
I've tried next:
$content = preg_replace('~(<tr.*[\'"]Pricetoreplace[\'"].*tr>)~', '', $content);
But it didnt work.
 
    