How can I extract whatever follows the last slash in a URL in Python? For example, these URLs should return the following:
URL: http://www.test.com/TEST1 ret
One more (idio(ma)tic) way:
URL.split("/")[-1]