[pcre-dev] [Bug 2770] Delimiters used within \Q..\E are mark…

Top Page

Reply to this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2770] Delimiters used within \Q..\E are marked unrecognized
https://bugs.exim.org/show_bug.cgi?id=2770

--- Comment #1 from Philip Hazel <Philip.Hazel@???> ---
This is perhaps a lack of detail in the documentation, no more. You are using
pcre2test, which is a program for testing the PCRE2 library, and running small
regex tests. The way it works is to identify a pattern by delimiters, before
passing it to the library for interpretation. It makes no interpretation of the
pattern itself, except that, if '\' is encountered, the next character is not
checked for being the delimiter. This is an easy fudge for simple cases. I see
no reason why pcre2test should implement sophisticated regex parsing such as
\Q...\E interpretation itself. Note also that pcre2test is not intended for use
in any kind of production situation. Sometime before the next release I will
take a look at the documentation to see if it can be made more clear.

--
You are receiving this mail because:
You are on the CC list for the bug.