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: Sat, 28 Aug 2010 03:23:40 -0700 (PDT)

Ok, thanks for that confirmation. I upgraded to latest version I could find and 
it's working:

address@hidden ~]# echo teST |/bin/grep -iP '\Qtest\E'
teST
address@hidden ~]# /bin/grep --version
GNU grep 2.6.3

Stormy.

--- On Sat, 8/28/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: "Stormy" <address@hidden>
> Cc: "Paolo Bonzini" <address@hidden>, address@hidden, "grep help" 
> <address@hidden>
> Date: Saturday, August 28, 2010, 1:53 AM
> On Fri, 27 Aug 2010, Stormy wrote:
> 
> > 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
> 
> You need to get your grep fixed. This is not a bug in PCRE
> or pcregrep. 
> In my version of grep (on Gentoo Linux) it also works:
> 
> $ echo teST | pcregrep -i '\Qtest\E' 
> teST
> $ echo teST | grep -iP '\Qtest\E'
> teST
> 
> My grep is GNU grep 2.5.4. I assume it's using the
> installed PCRE
> library, which is 7.9. Check that you are using the latest
> releases of 
> grep and the PCRE library. If you are, complain to the
> maintainers of 
> grep. If not, try to update.
> 
> Philip
> 
> -- 
> Philip Hazel
>



reply via email to

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