title: Find all URL's in a string in rails 3
body: <p>I'm building an app in Rails 3 and I need a method to extract all urls from a string and store them in a hash or something. I know I need to use regular expressions but I don't know where exactly to begin with them.</p>
  
  <p>Also, I know about auto_link, but it doesn't quite do what I'm trying to achieve. I just simply need a hash of all the url's from a string.</p>
  
  <p>Thanks! </p>