how to separate words from a string?

David Anderson zerty.david at gmail.com
Sun May 11 20:15:25 EDT 2008


Hi, how can I separate words from a sentence in a string? Like the
java.String.split method
I need something that gets an string "This is a sentence", and return to em
a list["This","is","a","sentence"]
Can anyone help?
Thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080511/469b3d6c/attachment.html>


More information about the Python-list mailing list