Re: [Resin-interest] Quercus - preg_replace problem

2006-10-24 Thread Anoop K Achuthan
Hi, Please ignore the previous mail. preg_replace is working well. Thanks, Anoop Anoop K Achuthan wrote: > Hi, > > I use the following code to manipulate a URL to insert a port number. > > --- >

[Resin-interest] Quercus - preg_replace problem

2006-10-24 Thread Anoop K Achuthan
Hi, I use the following code to manipulate a URL to insert a port number. --- http://example.com/test";; $pattern = "/(http:\/\/)([^\/]+)\/(.*)/i"; $replacement = "$1$2:81/$3"; echo preg_rep