Problem with case-insensitive (?i) regex

Krzysztof Dajka alteriks at gmail.com
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 sentia.nl> 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:
>> http://www.varnish-cache.org/docs/2.1/faq/general.html?highlight=insensitive
>>
>> 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 varnish-cache.org
> http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>




More information about the varnish-misc mailing list