note 15543 added to function.preg-replace
| From: | slavekjurkowski at msn dot com | Date: | Sun, 16 Sep 2001 18:34:49 +0000 |
| Subject: | note 15543 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18065@lists.php.net to get a copy of this message | ||
oops typo..it should be:
$message = preg_replace("/((http(s?):\/\/)|(www\.))([\S\.]+)/i", '<a
href="http\3://\4\5" target="_blank"
class="whitebglinkUN">\2\4\5</a>', $message);
http://www.php.net/manual/en/function.preg-replace.php