flask.Markup.rindex

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

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