bs4.CData.rindex

CData.rindex(sub[, start[, end]]) → int

Like S.rfind() but raise ValueError when the substring is not found.