[pcre-dev] [Bug 892] New: a duplicate named subpattern retur…

Page principale
Supprimer ce message
Auteur: JW
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 892] New: a duplicate named subpattern returns the first match/nomatch result for conditional match of that pattern within the expression.
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=892
           Summary: a duplicate named subpattern returns the first
                    match/nomatch result for conditional match of that
                    pattern within the expression.
           Product: PCRE
           Version: N/A
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: eximbug@???
                CC: pcre-dev@???



a duplicate named subpattern returns the first match/nomatch result for
conditional match of that pattern within the expression.


eg.,

(?:a(?<quote>(?<apostrophe>')|(?<realquote>"))|b(?<quote>(?<apostrophe>')|(?<realquote>")))(?(quote)[a-z]+|[0-9]+)


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