Re: [PHP] dynamic link converter

2003-03-06 Thread electroteque
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

Re: [PHP] dynamic link converter

2003-03-05 Thread Nik Makepeace
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]";

Re: [PHP] dynamic link converter

2003-03-05 Thread Nik Makepeace
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]";

[PHP] dynamic link converter

2003-03-05 Thread electroteque
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);