How to extract a string from a url
<p>I have url that looks like this...</p>

<pre><code>http://www.example.com/accounts/?token=111978178853984|683b8096732be7fd725d3332-557626087|m9lSbmoYhZ6Yut4OC3smY1fRf1E.
</code></pre>

<p>from the token </p>

<p>111978178853984|683b8096732be7fd725d3332-<strong>557625434</strong>|m9lSbmoYhZ6Yut4OC3smY1fRf1E</p>

<p>557625434 is the id number. How can I extract the Id no from token using javascript.</p>

<p>I appreciate any help.</p>

<p>Thanks.</p>
