title: Removing an item from list matching a substring
body: <p>How do I remove an element from a list if it matches a substring?</p>
  
  <p>I have tried removing an element from a list using the <code>pop()</code> and <code>enumerate</code> method but seems like I'm missing a few contiguous items that needs to be removed:</p>
  
  <pre><code>sents = ['@$\tthis sentences needs to be removed', 'this doesnt',
       '@$\tthis sentences also needs to be removed',
       '@$\tthis sentences must be removed', 'this shouldnt',
       '# this needs to be removed', 'this isnt',
       '# this must', 'this musnt']
  
  for i, j in enumerate(sents):
    if j[0:3] == "@$\t":
      sents.pop(i)
      continue
    if j[0] == "#":
      sents.pop(i)
  
  for i in sents:
    print i
  </code></pre>
  
  <p>Output:</p>
  
  <pre class="lang-none prettyprint-override"><code>this doesnt
  @$  this sentences must be removed
  this shouldnt
  this isnt
  #this should
  this musnt
  </code></pre>
  
  <p>Desired output:</p>
  
  <pre class="lang-none prettyprint-override"><code>this doesnt
  this shouldnt
  this isnt
  this musnt
  </code></pre>