B.rindex(sub [,start [,end]]) -> int

Like B.rfind() but raise ValueError when the subsection is not found.