On May 29, 2005, at 12:39 AM, cheng wrote: > hi all > a string like > > "(word1 & (Word2|woRd3))" > > how can i use the re to split it to > > ['word1', 'word2', 'word3']
Could you be more exact about what the string is like? Does it literally contain the characters '&' and '|' ? If so, just split at them. -- Elliot Temple http://www.curi.us/ --- [This E-mail scanned for viruses by Declude Virus] -- http://mail.python.org/mailman/listinfo/python-list