Commit 35b86176 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Fix backslashes.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3693 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 8d55bfd9
...@@ -56,7 +56,7 @@ In addition to the C-like assignment (=), comparison (==) and boolean ...@@ -56,7 +56,7 @@ In addition to the C-like assignment (=), comparison (==) and boolean
(!, && and ||) operators, VCL supports regular expression and ACL (!, && and ||) operators, VCL supports regular expression and ACL
matching using the ~ operator. matching using the ~ operator.
.Pp .Pp
Unlike C and Perl, the backslash (\\) character has no special meaning Unlike C and Perl, the backslash (\e) character has no special meaning
in strings in VCL, which use the (%xx) escape mechanism just like URLs, in strings in VCL, which use the (%xx) escape mechanism just like URLs,
so it can be freely used in regular expressions without doubling. so it can be freely used in regular expressions without doubling.
.Pp .Pp
...@@ -174,7 +174,7 @@ backend www { ...@@ -174,7 +174,7 @@ backend www {
.host = "www.example.com"; .host = "www.example.com";
.port = "http"; .port = "http";
.probe = { .probe = {
# NB: \\r\\n automatically inserted after each string! # NB: \er\en automatically inserted after each string!
.request = .request =
"GET / HTTP/1.1" "GET / HTTP/1.1"
"Host: www.foo.bar" "Host: www.foo.bar"
...@@ -236,11 +236,11 @@ replaced with ...@@ -236,11 +236,11 @@ replaced with
.Fa sub . .Fa sub .
Within Within
.Fa sub , .Fa sub ,
.Va \\0 .Va \e0
(which can also be spelled (which can also be spelled
.Va & ) .Va & )
is replaced with the entire matched string, and is replaced with the entire matched string, and
.Va \\n .Va \en
is replaced with the contents of subgroup is replaced with the contents of subgroup
.Ar n .Ar n
in the matched string. in the matched string.
......
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