How to get value before last forward slash using Jquery
<p>I ha got these types of hrefs</p>

<pre><code>http://localhost:8080/en/reservations/tours-and-safaris-booking-enquiry-form/dubai/index.aspx
http://localhost:8080/en/reservations/tours-and-safaris-booking-enquiry-form/muscat/index.aspx
</code></pre>

<p>Now I need to write a function which will take this as input and will return "tours-and-safaris-booking-enquiry-form".</p>

<p>Please suggest!!</p>
