Matthew Barnett <[email protected]> added the comment:
Should a regex compile if a group is referenced before it's defined?
Consider this:
(?:(?(2)(a)|(b))+
Other regex implementations permit forward references to groups.
BTW, I had a look at the re module, found it too difficult, and so started on
my own implementation of the matching engine (available on PyPI).
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9179>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com