$testo='Stampo a video questo @@Minnie@@ #www.ciao.it#';
$testo = preg_replace("/(?iU)(@){2}([^\a]+)(@){2}( #)(http:\/\/)?(.+)(#)/", "\\2", $testo );
echo $testo;