note 13745 deleted from ref.strings by sander

From: Date: Sun, 07 Apr 2002 13:40:16 +0000
Subject: note 13745 deleted from ref.strings by sander
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-28924@lists.php.net to get a copy of this message
Sorry, there are mistakes in the last entry. I'll try it again: For mailto links: eregi_replace("([ ]+)([[:alnum:]\.\-]+\@[[:alnum:]\-]+\.[\.[:alnum:]]+)([^\.[:alnum:]])","\\1<a href=\"mailto:\\2\">\\2</A>\\3", $string; for URL links: eregi_replace("((http|https|ftp)\:\/\/[[:alnum:]\-]+\.[[:alnum:]\-]+[^[:space:]]*.)","<a href=\"\\1\">\\1</a>", $string);

« previous php.notes (#28924) next »