You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-dev@jakarta.apache.org by bu...@apache.org on 2002/06/01 02:07:01 UTC

DO NOT REPLY [Bug 9556] New: - Subgroup wrong when matching (.)(?=(.)) against "XY"?

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9556>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9556

Subgroup wrong when matching (.)(?=(.)) against "XY"?

           Summary: Subgroup wrong when matching (.)(?=(.)) against "XY"?
           Product: ORO
           Version: 2.0.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Main
        AssignedTo: oro-dev@jakarta.apache.org
        ReportedBy: adrianboyko@hotmail.com


The following case behaves as I would expect:
   Perl5 Expression: (.)(?=(.))(.)
   Search Input: XYZ
   Match 1: XY
      Subgroups:
         1: X
         2: Y
         3: Y

But the slightly simpler case, below, doesn't seem to match the 2nd subgroup
correctly:
   Perl5 Expression: (.)(?=(.))
   Search Input: XY
   Match 1: X
      Subgroups:
         1: X
         2:

Shouldn't the second subgroup in the second case be "Y" instead of blank?
I'm trying this in the "Demonstration Applet" from version 2.0.6.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>