please help with simple regexp
viofis at my-deja.com
viofis at my-deja.com
Thu Jul 1 20:33:35 EDT 1999
More information about the Python-list mailing list
Thu Jul 1 20:33:35 EDT 1999
- Previous message (by thread): hilighting 'self' (was: Re: total idiot question: +=, .=, etc...)
- Next message (by thread): please help with simple regexp
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): hilighting 'self' (was: Re: total idiot question: +=, .=, etc...)
- Next message (by thread): please help with simple regexp
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list