[pcre-dev] [Bug 781] New: pcreposix regexec shall set PCRE_N…

トップ ページ
このメッセージを削除
著者: Pascal MALAISE
日付:  
To: pcre-dev
新しいトピック: [pcre-dev] [Bug 781] pcreposix regexec shall set PCRE_NOTEMPTY
題目: [pcre-dev] [Bug 781] New: pcreposix regexec shall set PCRE_NOTEMPTY
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=781
           Summary: pcreposix regexec shall set PCRE_NOTEMPTY
           Product: PCRE
           Version: 7.8
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: malaise@???
                CC: pcre-dev@???



Matching string 'b' versus pattern 'a?|b?' with POSIX regex finds a match at
offset 1 to 1 (b matches b?).
Same test with pcreposix finds a match at offset 1 to 0 (b matches a?).

Setting "options |= PCRE_NOTEMPTY;" in regexec of pcreposix before calling
pcre_exec allows pcreposix to behave like POSIX.

Is it possible to have this behavior in next release of pcre?
Or is it possible to have a new flag REG_NOTEMPTY?


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email