thanks heaps mate
http://electroteque.dyndns.org:1023/benchmark/preg.phps
here it is with email hyperlinking aswell
"Nik Makepeace" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 2003-03-06 at 05:49, electroteque wrote:
> > hi there i am trying tom preg_replace on a string
On Thu, 2003-03-06 at 05:49, electroteque wrote:
> hi there i am trying tom preg_replace on a string enclosed in brackets to
> denote a dynamic link
This works, if I understand you correctly:
http://www.eletroteque.dyndns.org/index_html.php|Eletroteque Multimedia]";
On Thu, 2003-03-06 at 05:49, electroteque wrote:
> hi there i am trying tom preg_replace on a string enclosed in brackets to
> denote a dynamic link
This works, if I understand you correctly:
http://www.eletroteque.dyndns.org/index_html.php|Eletroteque Multimedia]";
hi there i am trying tom preg_replace on a string enclosed in brackets to
denote a dynamic link
$message = "[http://www.eletroteque.dyndns.org/index_html.php|Eletroteque
Multimedia]";
echo $message =
preg_replace("/((http(s?):\/\/)|(www\.))([\w\.]+)([\/\w+\.]+)([\|\w+\.]+)\b/
i", "\\7", $message);
4 matches
Mail list logo