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.
> 
> -----------------------------------------------------------------------------------------------
> <?php
>      $entry_id = "http://example.com/test";;
>      $pattern = "/(http:\/\/)([^\/]+)\/(.*)/i";
>      $replacement = "$1$2:81/$3";
>      echo preg_replace($pattern, $replacement, $entry_id);
> ?>
> -----------------------------------------------------------------------------------------------
> 
> When I run the above code using command line php, I get the output as :
>  http://example.com:81/test
> 
> But when using quercus, the reg expression does not match. Is this a bug
> with
> quercus or a problem with the reg expression used?
> 
> Thanks,
> Anoop
> 
> 
> 
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to