I want to do a string replace in Python, but only do the first instance going from right to left. In an ideal world I\'d have:
myStr = \"mississippi\" print
def rreplace(s, old, new): try: place = s.rindex(old) return ''.join((s[:place],new,s[place+len(old):])) except ValueError: return s