title: Regex to remove text before "http://"?
body: <p>I have a ruby app parsing a bunch of URLs from strings:</p>
  
  <pre><code>@text = "a string with a url http://example.com"
  
  @text.split.grep(/http[s]?:\/\/\w/)
  
  @text[0] = "http://example.com"
  </code></pre>
  
  <p>This works fine ^^</p>
  
  <p>But sometimes the URLs have text before the HTTP:// for example</p>
  
  <pre><code>@text = "What's a spacebar? ...http://example.com"
  
  @text[0] = "...http://example.com"
  </code></pre>
  
  <p>Is there a regex that can select just the text before "http://" in a string so I can strip it out?</p>