string.find for case insensitive search

Duncan Booth duncan.booth at invalid.invalid
Wed Feb 7 16:06:08 EST 2007


"Johny" <python at hope.cz> wrote:

> Is there a good way how to use string.find function to find a
> substring if I need to you case insensitive substring?

s.lower().find(substring.lower())




More information about the Python-list mailing list