:master:
Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in /web/htdocs/www.***.it/home/contenuti.php on line 14

Codice PHP:
        function sost_semplice($stringa) {
        
$cercati = array('/[b]/''/[p]/''/[li]/''/[h1]/''/[h2]/''/[h3]/''/[h4]/''/[strong]/''/[/b]/''/[/p]/''/[/li]/''/[/h1]/''/[/h2]/''/[/h3]/''/[/h4]/''/[/strong]/''/[br]/');
        
$sostituti = array('[b]''

'
'[*]''<h1>''<h2>''<h3>''<h4>''[b]''[/b]''</p>''''<h1>''<h2>''<h3>''<h4>''[/b]''
'
);
        
$stringa preg_replace("$cercati""$sostituti"$stringa);
        return 
$stringa;
    } 
la linea 14 è:

$stringa = preg_replace("$cercati", "$sostituti", $stringa);

backslash??? non mi pare ke ci siano... può essere che fà casino tipo con '/[/h1]/' ma ho provato a fare l'escape con \ ma lo stesso mi resta l'errore :master: