title: regex to get all slashes from url
body: <p>I have the following URL:</p>
  <pre class="lang-none prettyprint-override"><code>localhost:3000/filter/shoes/color/white
  </code></pre>
  <p>I need to replace all slashes to <code>-</code> except the first slash from <code>localhost:3000/</code>.</p>
  <p>The final URL must be:</p>
  <pre class="lang-none prettyprint-override"><code>localhost:3000/filter-shoes-color-white
  </code></pre>
  <p>I've tried some regex with ruby but I didn't have any success.
  Thanks.</p>