Easy way to break up a sentence?
Paolo Invernizzi
paoloinvernizzi at dmsware.com
Wed Oct 2 09:46:31 EDT 2002
More information about the Python-list mailing list
Wed Oct 2 09:46:31 EDT 2002
- Previous message (by thread): Easy way to break up a sentence?
- Next message (by thread): Easy way to break up a sentence?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Eg, something like this: > from: "This is an example" > to: ["This", "is", "an", "example"] If the separator is constant, .split method is what you are searching. >>> "This is an example".split() ['This', 'is', 'an', 'example'] >>> Check also the RE module, for splitting based on regular expression... Paolo Invernizzi DMSWare.com
- Previous message (by thread): Easy way to break up a sentence?
- Next message (by thread): Easy way to break up a sentence?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list