[pypy-issue] [issue923] Regular expressions with optional look-ahead operations failing to match groups
Bruno Gola
tracker at bugs.pypy.org
Thu Oct 27 16:07:14 CEST 2011
Bruno Gola <brunogola at gmail.com> added the comment:
More information on this, I simplified the test case and did some debug. The
regexps bytecode are the same on both PyPy and CPython.
PyPy 1.6:
>>>> re.compile("1(?=(1))?").match("11").groups() # Using the '?' operator on
the whole assert/look-ahead block fails
(None,)
>>>> re.compile("1(?=(1)?)").match("11").groups() # Using the '?' operator just
on the subpattern
('1',)
CPython 2.7
>>> re.compile("1(?=(1))?").match("11").groups()
('1',)
>>> re.compile("1(?=(1)?)").match("11").groups()
('1',)
----------
status: unread -> chatting
title: Regular expressions with optional look-ahead operations failing to match -> Regular expressions with optional look-ahead operations failing to match groups
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue923>
________________________________________
More information about the pypy-issue
mailing list