Hi Gaylen,

> Please visit my web site at <a
> href=http://www.mysite.com>www.mysite.com</a>. You will be glad you did!

assumming all link start with www and all word which start
with www must be a link:

$repLink = preg_replace("/ (www[^ ]*) /i",
                        "<a href='http://\\1'>\\1</a>",
                        $myLink);

--
Jimmy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
People are like clouds, all unique.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to