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

From: Date: Thu, 25 Nov 2010 13:32:29 +0000
Subject: Re: rewriteTextLinks.php - make URLs in plain text clickable
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-309669@lists.php.net to get a copy of this message
Have you done some perfs testing ? Gunning sky Le 23 nov. 2010 00:34, "Andre Polykanine" <andre@oire.org> a écrit : > Hello Yermo, > > thanks a lot! I will try this on my project (http://oire.org/) and > I'll inform you if I modify it somehow. > -- > With best regards from Ukraine, > Andre > Skype: Francophile > Twitter: http://twitter.com/m_elensule > Facebook: http://facebook.com/menelion > > ----- Original message ----- > From: Yermo <yml@dtlink.com> > To: php-general@lists.php.net <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 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 found online this one handles more edge > cases including periods and commas at the end, surrounding parentheses, > trailing periods on only the domain part, etc. etc. > > http://formvista.com/fv-b-12-170/rewriteTextLinks-----a-function-to-make-links-in-blocks-of-text--quot-clickable-quot-.html > > --------------------------------------------------------------- > Yermo Lamers DTLink, LLC > Software Developer http://www.dtlink.com > > http://miles-by-motorcycle.com For Motorcycle Travellers > http://formvista.com Entrepreneurs CMS and Business Platform > --------------------------------------------------------------- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#309669) next »