Mam problem z preg_replace:
<?php private function bb_images() { $this->text = preg_replace('#[img:(.+?)="(.+?)"]#si', '<img src="/uploads/'.$var["1"].'/'."2".'" alt="obrazek" style="padding:5px;" />', $this->text); $this->text = preg_replace('#[img:(.+?)="(.+?)" s="(.+?)"]#si', '<img src="/uploads/'.$var["1"].'/'."2".'" alt="obrazek" style="padding:5px;float:'."3".'" />', $this->text); } ?>
Jak zrobić, by zamienić ciąg znaków ("\\1") na przypisane mu dane z tablicy?