Re: [PHP] rewriteTextLinks.php - make URLs in plain text clickable

2010-11-25 Thread Sky Gunning
ine, > Andre > Skype: Francophile > Twitter: http://twitter.com/m_elensule > Facebook: http://facebook.com/menelion > > - Original message - > From: Yermo > To: php-general@lists.php.net > Date: Tuesday, November 23, 2010, 1:04:19 AM > Subject: [PHP] rewriteTe

Re: [PHP] rewriteTextLinks.php - make URLs in plain text clickable

2010-11-22 Thread Andre Polykanine
From: Yermo To: php-general@lists.php.net Date: Tuesday, November 23, 2010, 1:04:19 AM Subject: [PHP] rewriteTextLinks.php - make URLs in plain text clickable I'm posting this in the hopes that it will be of some use to someone. I've put together a little regex function for finding a

[PHP] rewriteTextLinks.php - make URLs in plain text clickable

2010-11-22 Thread Yermo
I'm posting this in the hopes that it will be of some use to someone. I've put together a little regex function for finding and transforming links in blocks of plain text into clickable links while applying some heuristics to handle the more common edge cases. Unlike so many solutions I've fo