python contains string case insensitive code example
Example 1: how to make a string case insensitive in python
if thing.lower() == "text":
Example 2: python contains string case insensitive
>>> str = "Messi is the best SoCceR player"
>>> "soccer" in str.lower()
True
>>> "football" in str
False
Example 3: How to make String.Contains case insensitive?
Assert.IsTrue(text.ToUpper().Contains("Sample".ToUpper()));