- preg_replace: documentation ( source)
<?php
$str = '<span class="text"><b>If an alert window appears, click “Run”.</b> Depending on connection speed, the download may take a few minutes.</span>';
echo preg_replace('/<b>(.*?)<\/b>/', '$1', $str);
$str = '<span class="text"><b>Click “Start Trial Now”</b> to complete the installation of Tableau Desktop. Next, you’ll set up Tableau Server.</span>';
echo preg_replace('/<b>(.*?)<\/b>/', '$1', $str);