[pcre-dev] [Bug 2307] New: Start anchor in condition without…

トップ ページ
このメッセージを削除
著者: admin
日付:  
To: pcre-dev
題目: [pcre-dev] [Bug 2307] New: Start anchor in condition without no-pattern erroneously causes automatic anchoring
https://bugs.exim.org/show_bug.cgi?id=2307

            Bug ID: 2307
           Summary: Start anchor in condition without no-pattern
                    erroneously causes automatic anchoring
           Product: PCRE
           Version: 8.42
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: tattarakis@???
                CC: pcre-dev@???


Hi Philip, I hope and trust all is well with you.

Just stumbled across the following:

Regex: (?(?=^))b
Subject: abc
Result: No match

When we add the superfluous no-pattern, it matches as expected:

Regex: (?(?=^)|)b
Subject: abc
Result: Match at [1,2]

Thanks, and stay well!

- John

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