I can;t figure out what's wrong with my line:
$ret = preg_replace( "(http://|https://|http://www.|https://www.)([[:alnum:]#?~/&=._-]+)", "<a href=\"\\1\\2\" target=\"_blank\">\\1\\2</a>", $ret);
I tried inserting a / in the first pos of the first arg but that didn't work.
I'm stumped. Thanks for any help.