Matthew Barnett <pyt...@mrabarnett.plus.com> added the comment: The re module is addressed in issue #2636.
BTW, my regex module behaves like Ruby: >>> regex.sub(r"((x|y)*)*", "(\\1, \\2)", "xyyzy", count=1) '(, y)zy' >>> regex.sub(r"((x|y+)*)*", "(\\1, \\2)", "xyyzy", count=1) '(, yy)zy' ---------- nosy: +mrabarnett _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue2537> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com