Try:

$replacement .= preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1">$1</a>', $after_replace);
SplitIce Reviewed by SplitIce on . [phpBB2] Disable [code] tag from BBCode hi guys, Can someone help me? I like to make a url clickable inside of a tags. I am using a database from an old forum and would like to disable all tags that appears in all posts. I only need this to make urls into links. So, If exists a easy way to make this, please let me know :) Thank you This is my includes/bbcode.php file: Rating: 5