Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get text from url python last slash

#From stacoverflow:
url = 'http://www.test.com/TEST1'
last = url.rsplit('/', 1)[-1]
print(last) #TEST1
 
PREVIOUS NEXT
Tagged: #text #url #python #slash
ADD COMMENT
Topic
Name
5+5 =