[pcre-dev] [Bug 2209] New: Pattern does not match while it s…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2209] New: Pattern does not match while it should (works with internal optimizations turned off)
https://bugs.exim.org/show_bug.cgi?id=2209

            Bug ID: 2209
           Summary: Pattern does not match while it should (works with
                    internal optimizations turned off)
           Product: PCRE
           Version: 8.41
          Hardware: x86
                OS: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: firas.dib@???
                CC: pcre-dev@???


The pattern "(?=(a))\1?b" matched agains "ab" fails, while it should match.
Making the backref non-optional, or adding an anchor solves it. If you use the
PCRE_NO_START_OPTIMISE flag it works.

See https://regex101.com/r/wOft3k/1

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