title: Check if a string contains at least one of the strings in a list
body: <p>I'm trying to do a matching using python.</p>
  <p>I have a list of string (len~3000), and a file, and I want to check if for each line in the file, it has at least one of the strings in the list.</p>
  <p>The most straight forward way is to check one by one, but it takes time (not that long though).</p>
  <p>Is there a way that I can search that faster?</p>
  <p>For example:</p>
  <pre><code>lst = [&quot;aq&quot;, &quot;bs&quot;, &quot;ce&quot;]
  
  if the line is &quot;aqwerqwerqwer&quot;  -&gt; true (since has &quot;aq&quot; in it)
  if the line is &quot;qweqweqwe&quot; -&gt; false (has none of &quot;aq&quot;, &quot;bs&quot; or &quot;ce&quot;)
  </code></pre>