need help of RE

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


i try

query = query.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