Re: [pcre-dev] How to use \Q \E in GREP in a case-insensitiv…

Top Page
Delete this message
Author: Stormy
Date:  
To: Paolo Bonzini, pcre-dev
CC: pcre-dev, grep help
Subject: Re: [pcre-dev] How to use \Q \E in GREP in a case-insensitive way?
How do I submit a bug so this gets fixed? As you can see, workaround inside perl directly works fine:

# echo TesT | perl -ne '/\Qtest\E/ and print'
# echo TesT | perl -ne '/\Qtest\E/i and print'
TesT

Thanks.

--- On Fri, 8/27/10, Philip Hazel <ph10@???> wrote:

> From: Philip Hazel <ph10@???>
> Subject: Re: [pcre-dev] How to use \Q \E in GREP in a case-insensitive way?
> To: "Paolo Bonzini" <bonzini@???>
> Cc: "Stormy" <stormy1777@???>, pcre-dev@???
> Date: Friday, August 27, 2010, 2:45 AM
> On Thu, 26 Aug 2010, Paolo Bonzini
> wrote:
>
> > For the record, the bug (or unexpected behavior) seems
> to be that text
> > within \Q...\E does not obey PCRE_CASELESS.
>
> Not true, at least not in the current PCRE. This is output
> from pcretest:
>
> PCRE version 8.10 2010-06-25
>
> '\QTeST\E'
>   TeST
> 0: TeST
>  
> '\Qtest\E'i
>   TeST
> 0: TeST
>
> In other words, a match in both cases. To doublecheck, I
> looked at the
> compiled code for the cases with and without \Q...\E, and
> they are
> identical.
>
> Philip
>
> --
> Philip Hazel
>