Getting part of referring url with jquery
<p>I'm trying to set a cookie with a value that is made up of part of a referring url. The referring url looks something like:</p>

<pre><code>http://webct.university.ac.uk/webct/urw/lc715920578061.tp721521425061/courseMenu.dowebct?
</code></pre>

<p>and I need to extract:</p>

<pre><code>lc715920578061.tp721521425061
</code></pre>

<p>for reuse in another function.
Would this be regex? Could anyone help with the syntax?</p>

<p>Many thanks
Matthew</p>
