Answers for "python string contains case insensitive"

5

python string match ignore case

if firstStr.lower() == secStr.lower():
    print('Both Strings are same')
else:
    print('Strings are not same')
Posted by: Guest on April-08-2020
0

How to make String.Contains case insensitive?

Assert.IsTrue(text.ToUpper().Contains("Sample".ToUpper()));
Posted by: Guest on May-18-2020

Code answers related to "python string contains case insensitive"

Browse Popular Code Answers by Language