New submission from Matthew Barnett <[EMAIL PROTECTED]>: re.split doesn't split a string when the regex matches a zero characters.
For example: re.split(r'\b', 'a b') returns ['a b'] instead of ['', 'a', ' ', 'b', '']. re.split(r'(?<!\w)(?=\w)', 'a b') returns ['a b'] instead of ['', 'a ', 'b']. ---------- components: Regular Expressions messages: 69134 nosy: mrabarnett severity: normal status: open title: re.split doesn't split with zero-width regex type: behavior versions: Python 2.5 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3262> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com