title: Expression to remove URL links from Twitter tweet
body: <p>I simply would like to find and replace all occurrences of a twitter url in a string (tweet):</p>
  
  <p>Input:</p>
  
  <blockquote>
    <p>This is a tweet with a url: <a href="http://t.co/0DlGChTBIx">http://t.co/0DlGChTBIx</a></p>
  </blockquote>
  
  <p>Output:</p>
  
  <blockquote>
    <p>This is a tweet with a url:</p>
  </blockquote>
  
  <p>I've tried this:</p>
  
  <pre><code>p=re.compile(r'\&lt;http.+?\&gt;', re.DOTALL)
  tweet_clean = re.sub(p, '', tweet)
  </code></pre>