$content = preg_replace('/\[URL\](http.*?\.(png|jpg|gif))\[\/URL\]/i', '[img]https://vborg.vbsupport.ru/[/img]', $post['pagetext']);