title: Remove "www", "http://" from string
body: <p>How can I remove "www", "http://", "https://" from strings using Ruby?</p>
  
  <p>I tried this but it didn't work:</p>
  
  <pre><code>s.gsub('/(?:http?:\/\/)?(?:www\.)?(.*)\/?$/i', '')
  </code></pre>
  
  <p>Here what I'm doing in Rails:</p>
  
  <pre><code>&lt;%= auto_link(job.description) do |url| url.truncate(25).gsub('http://', '') end %&gt;
  </code></pre>
  
  <p>Url are truncated, but my goal is to remove the beginning of the links, such as "www" or "http://" so the link would look like "google.com/somepage/d...", not like "http://google.com/some..."</p>