Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Commits

[3.0] e43966d escape \0

 

 

Varnish commits RSS feed   Index | Next | Previous | View Threaded


tfheen at varnish-cache

May 24, 2012, 5:47 AM

Post #1 of 2 (56 views)
Permalink
[3.0] e43966d escape \0

commit e43966d7c8516b6d5b49d4084cc38b4fbcdc56a0
Author: Per Buer <perbu [at] varnish-software>
Date: Wed Apr 4 10:17:01 2012 +0200

escape \0

diff --git a/doc/sphinx/reference/vcl.rst b/doc/sphinx/reference/vcl.rst
index 01d783f..212cd2b 100644
--- a/doc/sphinx/reference/vcl.rst
+++ b/doc/sphinx/reference/vcl.rst
@@ -420,7 +420,7 @@ 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
+ 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.

_______________________________________________
varnish-commit mailing list
varnish-commit [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit


tfheen at varnish-cache

May 24, 2012, 5:51 AM

Post #2 of 2 (56 views)
Permalink
[3.0] e43966d escape \0 [In reply to]

commit e43966d7c8516b6d5b49d4084cc38b4fbcdc56a0
Author: Per Buer <perbu [at] varnish-software>
Date: Wed Apr 4 10:17:01 2012 +0200

escape \0

diff --git a/doc/sphinx/reference/vcl.rst b/doc/sphinx/reference/vcl.rst
index 01d783f..212cd2b 100644
--- a/doc/sphinx/reference/vcl.rst
+++ b/doc/sphinx/reference/vcl.rst
@@ -420,7 +420,7 @@ 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
+ 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.

_______________________________________________
varnish-commit mailing list
varnish-commit [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit

Varnish commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.