Should be doable with `rfind` unless there is a reason I overlooked. Would be willing to implement this.