title: Remove String From List
body: <p>I have a list of strings containing IP addresses and DNS names with which I would like to remove the values beginning with "10." only.  The sample data is as follows:</p>
  
  <p><code>['www.example.com','1.2.3.4','4.3.2.1','example.net','10.1.1.10','10.1.1.11',...]</code></p>
  
  <p>I thought this would be simple and started with the following:</p>
  
  <pre><code>for v in address:   
      test = re.match('(^\d+\.)',v)
      if test:
          if test.group(1) == '10.':
              address.remove(v)
  </code></pre>
  
  <p>The "10." addresses were not removed although I didn't receive any errors (and did some t-shooting with "print address.remove(v)" which resulted in "None" for each "10." address.  Leads me to believe the regex is wrong but it seems to work other than in this capacity.</p>
  
  <p>So I poked around with re.purge() - this didn't help either but don't think it's a factor in my problem.  I also tried using del address[...] to no avail.</p>
  
  <p>Where have I gone wrong?</p>
  
  <p>Thanks very much for your attention.</p>