Answers for "split string form url last slash"

1

split string form url last slash

url = 'http://www.test.com/TEST1'
l = url.split('/', -1)[-1]
Posted by: Guest on March-25-2021

Code answers related to "split string form url last slash"

Python Answers by Framework

Browse Popular Code Answers by Language