r5642 - in trunk/varnish-cache/doc/sphinx: . reference

perbu at varnish-cache.org perbu at varnish-cache.org
Sun Dec 12 19:37:58 CET 2010


Author: perbu
Date: 2010-12-12 19:37:58 +0100 (Sun, 12 Dec 2010)
New Revision: 5642

Modified:
   trunk/varnish-cache/doc/sphinx/index.rst
   trunk/varnish-cache/doc/sphinx/reference/vcl.rst
Log:
On regular expressions in VCL

Modified: trunk/varnish-cache/doc/sphinx/index.rst
===================================================================
--- trunk/varnish-cache/doc/sphinx/index.rst	2010-12-09 15:13:15 UTC (rev 5641)
+++ trunk/varnish-cache/doc/sphinx/index.rst	2010-12-12 18:37:58 UTC (rev 5642)
@@ -8,8 +8,9 @@
 in front of a web server an cache the content. It makes your web site
 go fast.
 
-We suggest you start by reading the :ref:`install-index`. Once you
-have Varnish up and running go through the :ref:`tutorial-index`.
+We suggest you start by reading the installation guide
+:ref:`install-index`. Once you have Varnish up and running go through
+our tutorial - :ref:`tutorial-index`.
 
 
 Contents:

Modified: trunk/varnish-cache/doc/sphinx/reference/vcl.rst
===================================================================
--- trunk/varnish-cache/doc/sphinx/reference/vcl.rst	2010-12-09 15:13:15 UTC (rev 5641)
+++ trunk/varnish-cache/doc/sphinx/reference/vcl.rst	2010-12-12 18:37:58 UTC (rev 5642)
@@ -288,6 +288,22 @@
     return (pipe);
   }
 
+Regular Expressions
+-------------------
+
+In Varnish 2.1.0 Varnish switched to using PCRE - Perl-compatible
+regular expressions. For a complete description of PCRE please see the
+PCRE(3) man page.
+
+To send flags to the PCRE engine, such as to turn on *case
+insensitivity* add the flag within parens following a question mark,
+like this:::
+
+  if (req.http.host ~ "(?i)example.com$") {
+          ...
+  }
+
+
 Functions
 ---------
 




More information about the varnish-commit mailing list