title: Python - Remove URLs from text with regex
body: <p>I have URLs in a text that look like this:</p>
  
  <pre><code>&lt;https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/reportAProblem?p
  =22000073760328&amp;o=i&gt;
  </code></pre>
  
  <p>I've used the following pattern to try and remove them:</p>
  
  <pre><code>re.sub(r'\&lt;http.+?\&gt;', '', plain, re.S)
  </code></pre>
  
  <p>But it won't get them all, for example, this one doesn't get removed: </p>
  
  <pre><code>&lt;http://ax.phobos.apple.com.edgesuite.net/email/images_shared/spacer_99999\r\n9.gif&gt;
  </code></pre>