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

2002-05-31 Thread Adrian Boyko
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: (.)(?=(.))

Re: Subgroup wrong when matching (.)(?=(.)) against XY?

2002-05-31 Thread Daniel F. Savarese
In message [EMAIL PROTECTED], Adrian Boyko writes: 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