title: Regex to get last word in URL between / and /
body: <p>How do I get the last word in a URL that is URL between / and / ?</p>
  
  <p>For example:</p>
  
  <p><a href="http://mywebsite.com/extractMe/test" rel="nofollow">http://mywebsite.com/extractMe/test</a></p>
  
  <p><a href="http://mywebsite.com/extractMe" rel="nofollow">http://mywebsite.com/extractMe</a></p>
  
  <p><a href="http://mywebsite.com/settings/extractMe/test" rel="nofollow">http://mywebsite.com/settings/extractMe/test</a></p>
  
  <p><a href="http://mywebsite.com/settings/extractMe" rel="nofollow">http://mywebsite.com/settings/extractMe</a></p>
  
  <p>Here I would want to get <code>extractMe</code> from the URL.</p>