title: Remove last element from url
body: <p>I need to remove the last part of the url from a span..</p>
  
  <p>I have</p>
  
  <pre><code>&lt;span st_url="http://localhost:8888/careers/php-web-developer-2"
  st_title="PHP Web Developer 2" class="st_facebook_large" displaytext="facebook"
  st_processed="yes"&gt;&lt;/span&gt;&lt;/span&gt;
  </code></pre>
  
  <p>And I need to take the <code>st_url</code> and remove the <code>php-web-developer-2</code> from it so it is just <code>http://localhost:8888/careers/</code>.</p>
  
  <p>But I am not sure how to do that. <code>php-web-developer-2</code> will not always be that but it won't have any <code>/</code> in it. It will always be a <code>-</code> separated string.</p>
  
  <p>Any Help!!??</p>