Problem with case-insensitive (?i) regex

Camiel Dobbelaar cd at
Sat Dec 4 17:29:06 CET 2010

On 4-12-2010 16:35, Krzysztof Dajka wrote:
> I'm trying to make case-insensitive regex to catch mobile browsers and
> redirect them to lightweight version of web page.
> I found this doc:
> But using "?i" before regular expression makes VCL compiler complain:

I fell into the same trap, because the example in the FAQ is wrong.  The
surrounding FAQ text has it correct.  (shame on me for not reporting it)

The brackets are mandatory, so you have to put "(?i)" at the start.


More information about the varnish-misc mailing list