Gerard <g...@gp-net.nl> added the comment: Bobby,
Can you post the actual text you need this for? The back ref indeed returns a None. I'm wondering if the regex can be be simplefied and if a positive lookbehind could solve this. Symantically speaking ... If there's a "b" then return the "ar", because then an empty alternate might again be of help. Kind regards, Gerard. _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1519638> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com