On May 29, 2005, at 12:57 AM, cheng wrote: > im sorry, my engilsh is not vell well, > > the string not only contain '&' and '|' and it can be anyting > > i just want to split out the "whole word" inside the string
If the string could be anything, how do you know where the words are? If it's whitespace that separates words, try out str.split() -- Elliot Temple http://www.curi.us/ --- [This E-mail scanned for viruses by Declude Virus] -- http://mail.python.org/mailman/listinfo/python-list