I have to check a lot of worlds if they are in string... code looks like:
if \"string_1\" in var_string or \"string_2\" in var_string or \"string_3\" in var_stri
import re if re.search("string_1|string_2|string_n", var_strings): print True
The beauty of python regex it that it returns either a regex object (that gives informations on what matched) or None, that can be used as a "false" value in a test.