title: find substring from a URL
body: <p>I have the following URL. </p>
  
  <pre><code>http://www.xyz.com/#tabname-1-12
  </code></pre>
  
  <p>I need to split 3 values from this URL: </p>
  
  <ul>
  <li><code>tabName</code>: the # value but do not want -1-12)</li>
  <li><code>1</code>: the first value after first "-"</li>
  <li><code>12</code>: second value after second "-"</li>
  </ul>
  
  <p>How can I do this?</p>