Hi,
Im tring to wrap a url in code blocks using the replace method. This is the method im using currently:
But what I want now, is to add [code] block on either end and not replace the actual url.Code:$replace = "Replace text here"; $message = preg_replace("#<a href=(.*?)</a>#ims", "$replace", $message);
Hope you knwo what I mean lol




Reply With Quote