Contact: aviboots(AT)netvision.net.il
39,879 questions
51,805 answers
573 users
url = "http://www.website.com/abc/xyz" s = url.rsplit('/', 1)[-1] print(s) ''' run: xyz '''
url = "http://www.website.com/abc/xyz" s = url.rsplit('/', 1).pop() print(s) ''' run: xyz '''
url = "http://www.website.com/abc/xyz" s = url.split("/")[-1] print(s) ''' run: xyz '''