Get string between last "slash" and first "interrogation mark"
<p>I have a url, like this:</p>

<pre><code>http://google.com/foo/querty?act=potato
http://google.com/foo/querty/?act=potato
http://google.com/foo/querty/#/21312ads
http://google.com/foo/querty#/1230982130asd
</code></pre>

<p>How can i get only the "querty" string by using regex in javascript for this format of URL?</p>
