how to use javascript to extract numeric part of a url
<p>I want to use javascript to extract a numeric part of a url. There is only ever supposed to be one set of numerals (aka - it will never be www.example.com/455/all/6). The set of numerals will not always be the same. How can I do this? I know that i can use this code</p>

<pre><code>    var urlPath = window.location.pathname;
</code></pre>

<p>to extract the url, but I don't know how to go further.</p>
