string.find for case insensitive search

Don Morrison donmorrison at gmail.com
Wed Feb 7 16:11:58 EST 2007


lower() is also deprecated :) oh well

On 7 Feb 2007 21:06:08 GMT, Duncan Booth <duncan.booth at invalid.invalid> wrote:
> "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())
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list