// ÏÐÎÂÅÐÊÀ È ÓÄÀËÅÍÈÅ ïðîñòîé óðë $text = preg_replace('#\[url\]((.*?)(")(.*?))\[/url\]#i', '  " disabled in url  ', $text); // " ÄÂÎÉÍÀß ÊÀÂÛ×ÊÀ $text = preg_replace("#\[url\]((.*?)(')(.*?))\[/url\]#i", '  ' disabled in url  ', $text);// ' ÎÄÈÍÀÐÍÀß ÊÀÂÛ×ÊÀ $text = preg_replace("#\[url\]((.*?)(>)(.*?))\[/url\]#i", '  < disabled in url  ', $text);// > çíàê áîëüøå $text = preg_replace("#\[url\]((.*?)(<)(.*?))\[/url\]#i", '  > disabled in url  ', $text); // < çíàê ìåíüøå // ÏÐÎÂÅÐÊÀ È ÓÄÀËÅÍÈÅ àíêîð è óðë $text = preg_replace('#\[url=((.*?)(")(.*?))\](.*?)\[/url\]#i', '  " disabled in url  ', $text); // " ÄÂÎÉÍÀß ÊÀÂÛ×ÊÀ $text = preg_replace("#\[url=((.*?)(')(.*?))\](.*?)\[/url\]#i", '  ' disabled in url  ', $text);// ' ÎÄÈÍÀÐÍÀß ÊÀÂÛ×ÊÀ $text = preg_replace("#\[url=((.*?)(>)(.*?))\](.*?)\[/url\]#i", '  < disabled in url  ', $text);// > çíàê áîëüøå $text = preg_replace("#\[url=((.*?)(<)(.*?))\](.*?)\[/url\]#i", '  > disabled in url  ', $text); // < çíàê ìåíüøå // âûâîæó BB-êîä $text = preg_replace("#\[url\](http://|ftp://|https://|ftps://)(.+)\[/url\]#i", '$1$2', $text); $text = preg_replace('#\[url=(http://|ftp://|https://|ftps://)(.+)\](.+)\[/url\]#i', '', $text); // ÏÎÄÑÂÅÒÊÀ âñ¸ ÷òî îñòàëèñü áåç (http://|ftp://|https://|ftps://) âíà÷àëå $text = preg_replace('#\[url\](.+)\[/url\]#i', ' "$1" NOT url ', $text); $text = preg_replace('#\[url=(.*?)\](.*?)\[/url\]#i', ' "$1" NOT url ', $text);