Afficher un message
Vieux 24/04/2008, 20h42   #1
Ciaran
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
 
Page generated in 0,06092 seconds with 9 queries