title: sed to remove URLs from a file
body: <p>I am trying to write a sed expression that can remove urls from a file</p>
  
  <p>example  </p>
  
  <pre><code>http://samgovephotography.blogspot.com/ updated my blog just a little bit ago. Take a chance to check out my latest work. Hope all is well:)   
  
  Meet Former Child Star &amp; Author Melissa Gilbert 6/15/09 at LA's B&amp;N https://hollywoodmomblog.com/?p=2442 Thx to HMB Contributor @kdpartak :)   
  </code></pre>
  
  <p>But I dont get it:  </p>
  
  <pre><code>sed 's/[\w \W \s]*http[s]*:\/\/\([\w \W]\)\+[\w \W \s]*/ /g' posFile  
  </code></pre>
  
  <p><strong>FIXED!!!!!</strong>   </p>
  
  <p>handles almost all cases, even malformed URLs  </p>
  
  <pre><code>sed 's/[\w \W \s]*http[s]*[a-zA-Z0-9 : \. \/ ; % " \W]*/ /g' positiveTweets | grep "http" | more
  </code></pre>