If a string contains *SUBJECT123, how do I determine that the string has subject in it in python?
if "subject" in mystring.lower():
# do something
If you want to have subject match SUBJECT, you could use re
if re.search('subject', your_string, re.IGNORECASE)
Or you could transform the string to lower case first and simply use:
if "subject" in your_string.lower()