note 15348 deleted from function.preg-replace by sniper
| From: | sniper@php.net | Date: | Sun, 07 Sep 2003 21:57:46 +0000 |
| Subject: | note 15348 deleted from function.preg-replace by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55672@lists.php.net to get a copy of this message | ||
Note Submitter: winegum@hotmail.com
----
Like the link replacement, the following is an example for a mailto link -
$description = preg_replace("/([\w\.]+)(@)([\w\.]+)/i", "<a href=\"mailto:$0\">$0</a>", $description);