varnishd.1: fix regular expression examples

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4106 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b7750583
......@@ -663,14 +663,14 @@ req.url == "/news"
Example: Purge all documents where the name does not end with ".ogg",
and where the size of the object is greater than 10 megabytes.
.Bd -literal -offset 4n
req.url !~ "\.ogg" && obj.size > 10MB
req.url !~ "\\.ogg$" && obj.size > 10MB
.Ed
.Pp
Example: Purge all documents where the serving host is "example.com"
or "www.example.com", and where the Set-Cookie header received from
the backend contains "USERID=1663".
.Bd -literal -offset 4n
req.http.host ~ "^(www\.)example.com$" && obj.set-cookie ~ "USERID=1663"
req.http.host ~ "^(www\\.)example.com$" && obj.set-cookie ~ "USERID=1663"
.Ed
.Sh SEE ALSO
.Xr varnishlog 1 ,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment