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
>>>'a|b', 'a')
<regex.Match object; span=(0, 1), match='a'>

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

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

Comments (2)

  1. Log in to comment