A simple preg_replace escaping problem
Hi I'm having trouble running the following preg_replace:
$thestring = preg_replace( '!<a href="javascript:radio('/0radio/
stream.php?radioID=(.*?)')" class="radioPlay">(.*?)</a>!' ,
"[radio:\\1]", $thestring );
Can anyone me escape the ' apostrophe? I've tried all
combinations of \ in front of the ' characters but nothing seems
to work.
Cheers,
Ciarán
|