bs4.Declaration.rindex

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

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