 <pre><code>import re if re.search("string_1|string_2|string_n", var_strings): print True </code></pre> <p>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.</p>