Easy way to break up a sentence?

Ken ken at hotmail.com
Wed Oct 2 15:31:16 CEST 2002

Hi all, I am trying to do a simple word search engine. Is there an easy way
to break up a sentence into individual words so that I can use it to compare
without traversing through every character?

Eg, something like this:
from: "This is an example"
to: ["This", "is", "an", "example"]


More information about the Python-list mailing list