note 32115 added to function.ereg-replace
| From: | dontwant at no dot friggin dot spam | Date: | Sat, 17 May 2003 13:50:03 +0000 |
| Subject: | note 32115 added to function.ereg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48139@lists.php.net to get a copy of this message | ||
I need a really good pattern to find and replace urls using eregi_replace. It needs to replace it
with the html to make the url. It also needs to work for the following things.
http://www...etc
www...etc
http://...etc
3 letter endings like .com 2 letter endings and 4 letter endings
Lots of sub-domains, I know you can get at least a sub-domain of a sub-domain!
And anything else you guys can think of that needs to be added.
So if someone can whip one up for me I'd be very grateful, thanks alot.
--
http://www.php.net/manual/en/function.ereg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+32115
http://master.php.net/manage/user-notes.php?action=delete+32115
http://master.php.net/manage/user-notes.php?action=reject+32115