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

Startseite
Nachricht löschen
Autor: Philip Hazel
Datum:  
To: Paolo Bonzini
CC: pcre-dev, Stormy
Betreff: Re: [pcre-dev] How to use \Q \E in GREP in a case-insensitive way?
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