allow lookarounds in conditionals · Issue #163 · mrabarnett/mrab-regex (original) (raw)
Original report by Anonymous.
It would be really helpful to allow allow lookarounds in addition to group name/id in conditional expression like in PCRE to allow a regex like this:
regex.findall(r'(?(?<=love\s)you|(?<=hate\s)her)', 'I love you but I don't hate her either. You and her are so different)