[Varnish] #249: regsub

Varnish varnish-bugs at projects.linpro.no
Mon Jun 16 22:24:17 CEST 2008

#249: regsub
 Reporter:  ebik      |        Owner:  phk  
     Type:  defect    |       Status:  new  
 Priority:  normal    |    Milestone:       
Component:  varnishd  |      Version:  trunk
 Severity:  normal    |   Resolution:       
 Keywords:            |  
Comment (by ebik):

 Replying to [comment:3 phk]:
 > Why does your patch remove support for the '&' replacement ?
 > Poul-Henning
 This patch should be splitted in two patches. One should fix broken
 behaviour of $0, $1, ... $9, and the other one shoud remove '&' and add
 The '&' can be simulated by '$0'. I need to substitue '/foo/bar' by
 'script.php?dir=foo&id=bar'. And there is no way to include '&' in
 replacement now. Maybe there should be '$&' which is consistent with perl

Ticket URL: <http://varnish.projects.linpro.no/ticket/249#comment:4>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list