title: Delete item from list if it contains a substring from a "blacklist"
body: <p>In python, I'd like to remove from a list any string which contains a substring found in a so called "blacklist".</p>
  
  <p>For example, assume list A is the following: </p>
  
  <pre><code>A = [ 'cat', 'doXXXg', 'monkey', 'hoBBBrse', 'fish', 'snake']
  </code></pre>
  
  <p>and list B is:</p>
  
  <pre><code>B = ['XXX', 'BBB']
  </code></pre>
  
  <p>how could I get list C:</p>
  
  <pre><code>C = [ 'cat', 'monkey', 'fish', 'snake']
  </code></pre>
  
  <p>I've played around with various combinations of regex expressions and list comprehensions but I can't seem to get it to work.</p>