title: Get last part of the link
body: <p>We have a link like <code>http://stackoverflow.com/questions/9281910/h1-and-semantic-html5</code></p>
  
  <p>How do I get the part, which is before the last and after last but one <code>/</code>?</p>
  
  <p><strong>In this example we would get</strong> <code>h1-and-semantic-html5</code></p>
  
  <p><strong>More examples:</strong></p>
  
  <p>From the link <code>http://dribbble.com/highlights/2012/</code> we get <code>2012</code> </p>
  
  <p>From <code>http://www.apple.com/iphone/</code> we get <code>iphone</code></p>