
phk at phk
Sep 19, 2007, 11:27 PM
Post #4 of 4
(23 views)
Permalink
|
In message <52EBF0BB-B6EB-4937-AB9A-7ACCE3D08EF0 at digitalmarbles.com>, Ricardo N ewbery writes: > >On Sep 19, 2007, at 10:35 AM, Poul-Henning Kamp wrote: > >> In message >> <33afbbe70709191024l5c935f7fi11c6f2d9c06b55f1 at mail.gmail.com>, "Cale >> b Anthony" writes: >>> Hello, >>> >>> It doesn't appear that VCL supports case insensitive regular >>> expressions. Is this true? >> >> Yes because I didn't think of that. > > >Hmm... won't this potentially mess up support for multiple hostnames/ >backends? Using the example from the man page: > > if (req.http.host ~ "^(www.)?example.com$") { > set req.backend = www; > } > >I assumed this would match example.com and Example.com. Is this not >the case? Now it is, I just changed regexp's to be case insensitive. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk at FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
|