extract last part of a url
<p>need the last part of the url</p>

<p><a href="http://example.com" rel="nofollow">http://example.com</a> then the last part is nothing
if it is <a href="http://example.com/i" rel="nofollow">http://example.com/i</a> then last part is i
if it is <a href="http://example.com/i/am/file.php" rel="nofollow">http://example.com/i/am/file.php</a>
then last part is file.php</p>

<p>not sure if I use regex or what</p>
