[3.0] cbd31d0 Fix escaping in regsub docs
Tollef Fog Heen
tfheen at varnish-cache.org
Thu May 24 14:51:11 CEST 2012
commit cbd31d0e3987608bdb842fc97664ef13e755e4ea
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date: Mon Apr 16 14:11:30 2012 +0200
Fix escaping in regsub docs
diff --git a/doc/sphinx/reference/vcl.rst b/doc/sphinx/reference/vcl.rst
index 212cd2b..927f640 100644
--- a/doc/sphinx/reference/vcl.rst
+++ b/doc/sphinx/reference/vcl.rst
@@ -420,9 +420,9 @@ hash_data(str)
regsub(str, regex, sub)
Returns a copy of str with the first occurrence of the regular
- expression regex replaced with sub. Within sub, \\0 (which can
- also be spelled &) is replaced with the entire matched string,
- and \n is replaced with the contents of subgroup n in the
+ expression regex replaced with sub. Within sub, \\0 (which can
+ also be spelled \\&) is replaced with the entire matched string,
+ and \\n is replaced with the contents of subgroup n in the
matched string.
regsuball(str, regex, sub)
More information about the varnish-commit
mailing list