Is there any way in python to say

    if string1 in string2:
        <do something>

ignoring the case of string1 and string2? 


I know I could use:-

    if lower(string1) in lower(string2):
        <do something>

but it somehow feels there ought to be an easier (tidier?) way.

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

Reply via email to