>> I propose implementing str.rreplace. (It'll be to str.replace what >> str.rsplit is to str.split.) Instead of str.rreplace you could just add a parameter 'reverse=False|True' and add the same thing wherever needed, including making rfind superfluous.