in reply to The nth occurrence of a character

Won't rindex() be most direct?

Update: never mind that is just plain WRONG (that will give the last position). I should start waiting a few hours before posting.