jamadden / mrab-regex-hg

Automatically exported from code.google.com/p/mrab-regex-hg
0 stars 2 forks source link

regex.search("((a|b(?1)c){3,5})", "baaaaca", flags=regex.V1).groups() returns ('baaaac', 'baaaac') instead of ('aaaa', 'a') #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
>>> import regex
>>> regex.search("((a|b(?1)c){3,5})", "baaaaca", flags=regex.V1).groups()
('baaaac', 'baaaac')
>>>

What is the expected output? What do you see instead?
The expected output is the following:
>>> import regex
>>> regex.search("((a|b(?1)c){3,5})", "baaaaca", flags=regex.V1).groups()
('aaaa', 'a')
>>>

What version of the product are you using? On what operating system?
Windows XP Home SP3 (32-bit version)
Python 3.2.2 (default, Sep  4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on win
32
regex 0.1.20120316

Please provide any additional information below.

Original issue reported on code.google.com by msm...@gmail.com on 17 Mar 2012 at 9:44

GoogleCodeExporter commented 9 years ago
Fixed in regex 0.1.20120317.

Original comment by re...@mrabarnett.plus.com on 17 Mar 2012 at 11:45