[master] 49fc365 Fix example

Federico G. Schwindt fgsch at lodoss.net
Wed Nov 12 18:04:51 CET 2014


commit 49fc3653b92fd9e0c83114df8c82977bee8a5990
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Wed Nov 12 17:01:06 2014 +0000

    Fix example
    
    backslash is used for escaping in varnish-cli, so escape the backslash
    to actually pass "\.png$".

diff --git a/doc/sphinx/users-guide/purging.rst b/doc/sphinx/users-guide/purging.rst
index 70fb415..43df304 100644
--- a/doc/sphinx/users-guide/purging.rst
+++ b/doc/sphinx/users-guide/purging.rst
@@ -73,7 +73,7 @@ Support for bans is built into Varnish and available in the CLI
 interface. To ban every png object belonging on example.com, issue
 the following command::
 
-  ban req.http.host == "example.com" && req.url ~ "\.png$"
+  ban req.http.host == "example.com" && req.url ~ "\\.png$"
 
 Quite powerful, really.
 



More information about the varnish-commit mailing list