Elias Tarhini <elt...@gmail.com> added the comment:

Thank you. Was too zeroed-in on the idea that it was from the zero-width 
pattern, and I forgot to consider the group. Looks like `re.sub(pattern, 
'some-delim', s).split('some-delim')` is a way to do this if it's not possible 
to use a non-capturing group

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36397>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to