Named list, (?ri) flags, Backreference

Create issue
Issue #208 resolved
animalize created an issue

Found another bad combination:

# (?r) flag
>>> regex.search(r'(?r)\1dog..(?<=(\L<aa>))$', 'ccdogcc', aa=['bcb', 'cc'])
<regex.Match object; span=(0, 7), match='ccdogcc'>

# once add .IGNORECASE flag
>>> regex.search(r'(?ri)\1dog..(?<=(\L<aa>))$', 'ccdogcc', aa=['bcb', 'cc'])
None

Tested on regex 2016.05.14

Comments (1)

  1. Log in to comment