7stud wrote:
> On Apr 4, 2:43 pm, [EMAIL PROTECTED] wrote:
>> 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.
>>
> 
> Easier?  You mean like some kind of mind meld?
> 
That's right, DWIM mode Python. Rock on!

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/

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

Reply via email to