chciałbym ją zmodyfikować aby nie brała pod uwagę linków zawartych pomiędzy ] i [
<? $str = preg_replace( "`(http|ftp)+(s)?:(//)((\w|\.|\-|_)+)(/)?(\S+)?`i", "<a href=\"\\0\" target=\"_blank\">\\4</a>", $str); ?>
<? $str = preg_replace( "`(http|ftp)+(s)?:(//)((\w|\.|\-|_)+)(/)?(\S+)?`i", "<a href=\"\\0\" target=\"_blank\">\\4</a>", $str); ?>