SyntaxFix
Write A Post
Hire A Developer
Questions
rsplit should be up to the task:
rsplit
In [1]: 'http://www.test.com/page/TEST2'.rsplit('/', 1)[1] Out[1]: 'TEST2'