Author SilentGhost
Recipients SilentGhost, dnotmanj, ezio.melotti, mrabarnett
Date 2015-01-25.18:10:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422209422.52.0.448572609575.issue23318@psf.upfronthosting.co.za>
In-reply-to
Content
Looks like it works exactly as the docs[1] describe:

>>> re.split(r'\s*[+/&;,]\s*|\s+and\s+', string)
['Dave', 'Sam', 'Jane', 'Zoe']

You're using capturing groups (parentheses) in your original regex which returns separators as part of a match.

[1] https://docs.python.org/3/library/re.html#re.split
History
Date User Action Args
2015-01-25 18:10:22SilentGhostsetrecipients: + SilentGhost, ezio.melotti, mrabarnett, dnotmanj
2015-01-25 18:10:22SilentGhostsetmessageid: <1422209422.52.0.448572609575.issue23318@psf.upfronthosting.co.za>
2015-01-25 18:10:22SilentGhostlinkissue23318 messages
2015-01-25 18:10:22SilentGhostcreate