Kent Johnson said unto the world upon 28/12/05 07:06 AM: > Brian van den Broek wrote: > >>def punctuation_split(sequence): >> '''returns list of character sequences separating punctuation >>characters''' >> for mark in punctuation: >> sequence = sequence.replace(mark, ' %s ' %mark) >> return sequence.split(' ') > > > You should look at re.split(). > > Kent
What, and have *2* problems? :-) (But seriously, thanks for the pointer. As I was coding, I thought there must have been a better way drawing off of the library. See my other post for why I couldn't find it.) Best, Brian vdB _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor