Problem with case-insensitive (?i) regex

Krzysztof Dajka alteriks at
Sat Dec 4 20:24:04 CET 2010

Thanks a lot.
It would be nice if  information about usage of case-insensitive regex
could be put into VCL(7)

On Sat, Dec 4, 2010 at 4:29 PM, Camiel Dobbelaar <cd at> wrote:
> 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.
> --
> Cam
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at

More information about the varnish-misc mailing list