Mailing List Archive

Case Insensitive Regular Expressions
Hello,

It doesn't appear that VCL supports case insensitive regular
expressions. Is this true?

I have tried all the methods that I am aware of to signify case
insensitivity, and none seem to work.

Any help would be appreciated.

Thanks.
Case Insensitive Regular Expressions [ In reply to ]
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.

--
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.
Case Insensitive Regular Expressions [ In reply to ]
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?

Ric
Case Insensitive Regular Expressions [ In reply to ]
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.