bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pcre-dev] How to use \Q \E in GREP in a case-insensitive way?


From: Stormy
Subject: Re: [pcre-dev] How to use \Q \E in GREP in a case-insensitive way?
Date: Fri, 27 Aug 2010 10:30:21 -0700 (PDT)

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 <address@hidden> wrote:

> From: Philip Hazel <address@hidden>
> Subject: Re: [pcre-dev] How to use \Q \E in GREP in a case-insensitive way?
> To: "Paolo Bonzini" <address@hidden>
> Cc: "Stormy" <address@hidden>, address@hidden
> 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
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]