note 15540 added to function.preg-replace

From: Date: Sun, 16 Sep 2001 15:12:35 +0000
Subject: note 15540 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-18061@lists.php.net to get a copy of this message
Just a note, With PHP3 I was only able to get the example by sluderitz@yahoo.de to work if I used the following: $message = preg_replace("/((http(s?):\/\/)|(www\.))([\w\.]+)/i", '<a href="http\3://\4\5" target="_blank">\2\4\5</a>', $message); http://www.php.net/manual/en/function.preg-replace.php

« previous php.notes (#18061) next »