Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python string contains substring ignore case

string1 = "hi"
string2 = "HI"
if string1.lower() == string2.lower():
    print "Equals!"
else:
    print "Different!"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #string #substring #ignore #case
ADD COMMENT
Topic
Name
2+4 =