Johny wrote:
> Is there a good way how to use string.find function to find a
> substring if I need to you case insensitive substring?
> Thanks for reply
> LL
> 
Maybe something like:

x="my string I'm going to SEarCH"
hasword='SEARCH' in x.upper()
location=x.upper().find('SEARCH')

print hasword
True

print location
23


-Larry

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to