How to extract end of URL in Javascript?
<p>I have URLs in the form:</p>

<blockquote>
  <p>serverName/app/image/thumbnail/2012/4/23/1335228884300/bb65efd50ade4b3591dcf7f4c693042b</p>
</blockquote>

<p>Where <code>serverName</code> is the domain name of the server.</p>

<p>I would like to write a JS function that accepts one of these URLs and returns the very last (right-most) forward-slash-delimited string. So if the URL above was passed into the function, it would return "<code>bb65efd50ade4b3591dcf7f4c693042b</code>";.</p>

<pre><code>function getImageDirectoryByFullURL(url) {
    // ... Not sure how to define regexp to delimit on forward slashes,
    // or how to start searching from end of string.
}
</code></pre>
