#'],['<','>'],$text); $text=preg_replace('#(https?://.+?)(\s|$|\W\s|\W$)#m','$1$2',$text); $text=nl2br($text); return $text; } ?>