[Varnish] #359: regsub documented as using $1, $2 etc, but actually uses \1, \2 for replacement strings

Varnish varnish-bugs at projects.linpro.no
Tue Dec 16 23:38:25 CET 2008


#359: regsub documented as using $1,$2 etc, but actually uses \1, \2 for
replacement strings
---------------------------+------------------------------------------------
 Reporter:  eugaia         |        Owner:          
     Type:  documentation  |       Status:  reopened
 Priority:  low            |    Milestone:          
Component:  documentation  |      Version:  trunk   
 Severity:  minor          |   Resolution:          
 Keywords:  regsub         |  
---------------------------+------------------------------------------------
Changes (by hajile):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 I can reproduce this debian sid x64, varnish 2.0.2

 maybe regex library you are using has some modes like posix/perl/awk and
 apparently uses awk-style regexps?

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/359#comment:2>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list