avevo ragione

ma con questa ovvia modifica funziona...mi sento DIO:

codice:
$text = preg_replace("#\[img\]((ht|f)tp://)([^\r\n\t<\"]*?)\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text); 

$text = preg_replace("#\[img\]([0-9]+)\[/img\]#sie", "'[img:$uid]album_pic.php\?pic_id=\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);