note 13745 added to ref.strings.php

From: Date: Sat, 30 Jun 2001 22:11:23 +0000
Subject: note 13745 added to ref.strings.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14831@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); http://www.php.net/manual/en/ref.strings.php

« previous php.notes (#14831) next »