title: how to do re.compile() with a list in python
body: <p>I have a list of strings in which I want to filter for strings that contains keywords. </p>
  
  <p>I want to do something like:</p>
  
  <pre><code>fruit = re.compile('apple', 'banana', 'peach', 'plum', 'pinepple', 'kiwi']
  </code></pre>
  
  <p>so I can then use re.search(fruit, list_of_strings) to get only the strings containing fruits, but I'm not sure how to use a list with re.compile. Any suggestions? (I'm not set on using re.compile, but I think regular expressions would be a good way to do this.)</p>