title: How to get values of multiple URL variables after the hash sign
body: <p>Let's say i have this URL:</p>
  
  <p><a href="http://www.example.com/#articles/123456/" rel="nofollow">http://www.example.com/#articles/123456/</a></p>
  
  <p>I want to get the values after the <code>#</code> in <code>JS</code>.</p>
  
  <p>Which are: <strong><em>articles</em></strong> and <strong><em>123456</em></strong></p>
  
  <p>I was able to get the whole string using:</p>
  
  <pre><code>var type = window.location.hash.substr(1);
  </code></pre>
  
  <p>The result was: <strong><em>articles/123456/</em></strong></p>
  
  <p>Is there a way to get each variable alone ?</p>
  
  <p>Thanks in advance.</p>