title: How to split a string which contains multiple forward slashes
body: <p>I have a string as given below,</p>
  
  <pre><code>./component/unit
  </code></pre>
  
  <p>and need to split to get result as <code>component/unit</code> which I will use this as key for inserting hash. </p>
  
  <p>I tried with <code>.split(/.\//).last</code> but its giving result as <code>unit</code> only not getting <code>component/unit</code>.</p>