adding a double quote into a regsub in vcl_fetch

Andreas Plesner Jacobsen apj at mutt.dk
Wed Oct 16 09:13:03 CEST 2013


On Tue, Oct 15, 2013 at 06:44:54PM -0500, Paul A. Procacci wrote:
> 
> Instead of the back and forth, how about from the documenation:
> (https://www.varnish-cache.org/trac/wiki/VCLSyntaxStrings)

That's not the documentation. That's the user editable wiki. The real docs are
here: https://www.varnish-cache.org/docs/3.0/reference/vcl.html#syntax

> "Given that we have never been able to come up with a valid need for any escaped characters apart from that, we decided that %22 for " and %25 for %, was much less suffering than doubling all backslashes in regexp/regsub contexts."

%-escapes went away with 3.0. You can only use long strings now, i.e. {"..."}

I've updated the wiki.

-- 
Andreas



More information about the varnish-misc mailing list