title: Regular Expression to Extract String from URL
body: <p>I am looking to extract a string from a URL. Here is an example to illustrate what I am looking for.</p>
  
  <p>Input URL: <a href="http://www.nba.com/bulls/stats/" rel="nofollow">http://www.nba.com/bulls/stats/</a>
  Output   : bulls</p>
  
  <p>In other words, I want to be able to extract the string between the second last and last "/" in the url. I know that I can split by "/" and extract the second last term, but am looking for a cleaner regex solution.</p>
  
  <p>Any ideas?</p>