https://bugs.exim.org/show_bug.cgi?id=2725

            Bug ID: 2725
           Summary: (*SKIP)(*F) within a (?(DEFINE)) does not skip
                    position
           Product: PCRE
           Version: 10.36 (PCRE2)
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: philip.ha...@gmail.com
          Reporter: c_moi_l_mas...@hotmail.com
                CC: pcre-dev@exim.org

String(without backticks):     `"key": { "k1":"v1", "k2":"v2" }`

Pattern1:       /(?<Value>"[^"]*":(*SKIP)(*F)|"[^"]*")/g
Pattern2:       /(?&Value)(?(DEFINE)(?<Value>"[^"]*":(*SKIP)(*F)|"[^"]*"))/g

Pattern1 works, Pattern2 does not work in PCRE2, works as expected in perl

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-- 
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to