R. David Murray added the comment: >>> re.split('-', 'abc-def-jlk') ['abc', 'def', 'jlk'] >>> re.split('(-)', 'abc-def-jlk') ['abc', '-', 'def', '-', 'jlk']
Does that make it a bit clearer? Maybe we need an actual example in the docs. ---------- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: committed/rejected -> needs patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17668> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com