May-14-2024, 01:22 PM
(May-14-2024, 12:51 PM)Gribouillis Wrote:I am using version 3.12 with the PyCharm IDE. It underlines the \1\1 in the first part of the pattern after the ! and says 'Group reference not allowed inside lookbehind'. It still runs but remains flagged as an error. I am on a mac but do not know if that is part of the issue.(May-14-2024, 12:29 PM)bfallert Wrote: there is a compilation error stating that groups are not supported in lookbehinds.Which version of Python are you using? It works fine here in Python 3.10. The latest Python is 3.12 as of may 2024. Groups are allowed in lookbehind assertions since Python 3.5 (2015).