Like rfind, but raises ValueError when the substring sub is not found.
See also
char.rindex
numpy.core.defchararray.chararray.rfind
numpy.core.defchararray.chararray.rjust