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 <[email protected]> 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 > [email protected] > http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc > _______________________________________________ varnish-misc mailing list [email protected] http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
