[pcre-dev] [Bug 2792] New: \K should not be allowed in looka…

Startseite
Nachricht löschen
Autor: admin
Datum:  
To: pcre-dev
Betreff: [pcre-dev] [Bug 2792] New: \K should not be allowed in lookarounds
https://bugs.exim.org/show_bug.cgi?id=2792

            Bug ID: 2792
           Summary: \K should not be allowed in lookarounds
           Product: PCRE
           Version: 10.36 (PCRE2)
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: Philip.Hazel@???
          Reporter: firas.dib@???
                CC: pcre-dev@???


Perl disallows the use of \K in lookarounds, while PCRE allows it. We should
mimic that behavior and throw an error.

See this example:
perl -e "/(?<=.\K)/ =~ "test""
\K not permitted in lookahead/lookbehind in regex; marked by <-- HERE in
m/(?<=.\K <-- HERE )/ at -e line 1.

perl --version

This is perl 5, version 34, subversion 0 (v5.34.0) built for
x86_64-linux-thread-multi

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