I'm not one of those few who know regex, so I googled this regex:
I need it so that it only parses urls where there is not a ] or = on the left side, and there is not a [ or ] on the right side of the url. My intention here is that it will not parse urls that are used within bbcode.PHP Code:
$html = preg_replace("`((?:https?|ftp)://\S+[[:alnum:]]/?)`si", "<a href=\"$1\" target=\"_blank\">$1</a>", $html);
Help would be appreciated!