need help of RE

cheng magicmas at spymac.com
Sun May 29 04:04:16 EDT 2005


i try

theString= theString.lower()
print re.split(r'\W+',theString)

the reslut is :
['', 'word1', 'word2', 'word3', '']

how can i fix the statment to get 

['word1', 'word2', 'word3']




More information about the Python-list mailing list