note 15348 added to function.preg-replace
| From: | winegum at hotmail dot com | Date: | Thu, 06 Sep 2001 13:54:16 +0000 |
| Subject: | note 15348 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17723@lists.php.net to get a copy of this message | ||
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);
http://www.php.net/manual/en/function.preg-replace.php