please help with simple regexp

viofis at my-deja.com viofis at my-deja.com
Thu Jul 1 20:33:35 EDT 1999


I'm a beginner at Python, so this may be a stupid
question:

I have a string, for example, myString="the
Potato".
1. Convert it to all lowercase ("the potato")
2. Match it against a list of strings -
"potato,tomato,corn,etc...", extract "potato" (if
it matches with something on the list), then save
into myNewString.

Any help is greatly appreciated.

thanks,
Vadim



Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list