String Search?

j_l_alexander at my-deja.com j_l_alexander at my-deja.com
Tue Feb 29 17:45:37 CET 2000


As a pre-note: Having just picked up Python,
please excuse my ignorance.

How exactly do I search for a given string within
a string? i.e. how do I search for "foo" within
the sentence "the foo falls at midnight"? The
position of the string within the sentence isn't
important, just the existance.


TIA,
-Jason


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list