def str_after_last(src, sub):
    """Return a substring from the last occurrence of the substring sub to the end of the string"""
    idx = src.rfind(sub)
    return src[idx + len(sub):] if idx >= 0 else ''
