Answers for "get text from url python last slash"

1

get text from url python last slash

#From stacoverflow:
url = 'http://www.test.com/TEST1'
last = url.rsplit('/', 1)[-1]
print(last) #TEST1
Posted by: Guest on March-29-2021

Code answers related to "get text from url python last slash"

Python Answers by Framework

Browse Popular Code Answers by Language