Replace last instance of substring

Does Liquid / Jekyll have a substring filter that allows for a replacement of the last instance of a substring - say the last instance of ‘’?