python get last string after slash code example Example: python everything after last slash url.rsplit('/', 1)[-1]