remove characters in string after specific occurance
<p>Hoping you guys can help me out, I have a dynamic url and I need some javascript to basically trim the string after the specific occurance of a character.</p>

<p><strong>EXAMPLE:</strong></p>

<p>I have this url</p>

<blockquote>
  <p>Assessment/testdir2/TestDIR3/lecture slides 1as.pdf</p>
</blockquote>

<p>and I need to remove everything after the <code>2nd slash</code> and including the 2nd slash, </p>

<p>how would I do this?</p>
