string.find for case insensitive search

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Wed Feb 7 16:43:27 EST 2007


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

"abCdZEd".lower().find("BcD".lower())




More information about the Python-list mailing list