Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

Case Insensitive Regular Expressions

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


caleb.anthony at gmail

Sep 19, 2007, 10:24 AM

Post #1 of 4 (23 views)
Permalink
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.


phk at phk

Sep 19, 2007, 10:35 AM

Post #2 of 4 (23 views)
Permalink
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.


ric at digitalmarbles

Sep 19, 2007, 8:08 PM

Post #3 of 4 (23 views)
Permalink
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


phk at phk

Sep 19, 2007, 11:27 PM

Post #4 of 4 (23 views)
Permalink
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.

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.