Alternation and .REVERSE flag.

Create issue
Issue #193 resolved
animalize created an issue

The combination of alternation and .REVERSE flag has bug, it seems a regression introduced in the last update.

# without .REVERSE flag, ok
>>> regex.search('a|b', 'a')
<regex.Match object; span=(0, 1), match='a'>

# with .REVERSE flag, return None
>>> regex.search('(?r)a|b', 'a')
None

Test on regex 2016.03.24, Python 3.5.1 64bit, Windows 10.

Comments (2)

  1. Log in to comment