title: How to get last three value of url in selenium webdriver
body: <p>How to get last three values of an url in <code>selenium webdriver</code> ?
  For example, my url is <code>localhost/project/user/login</code> and I want to extract the <code>project/user/login</code> part of it.</p>
  
  <p>I use <code>driver.getCurrentUrl();</code> to get my current url.</p>