what is the best way to replace a string like this using preg_replace:
<a class="left" href="javascript:goBack()">Back</a>
It is an exact string that appears in many places, and I need it gone. I have tried preg_replace('#<a class="left" href="javascript:goBack()">Back</a>#','',$str);
and preg_replace('#<a class="left" href="javascript:goBack\\(\\)">Back<\\/a>#','',$str) but no joy.
any help gratefully received.