Find the "#" character in a string with Javascript
<p>I need to parse the given urls via Javascript but I'm not able to use .split() to accomplish to this.</p>

<p>IE:</p>

<pre><code>  var str = window.location.pathname;
  var substr = str.split('/');
  alert(substr)
</code></pre>

<p>If i enter this url "http://mydomain.com/myaddress/page/2/" I have thoose values "myaddress,page,2"</p>

<p>But it doesn't work if instead of / I insert #</p>
