replace_last

僅將字串中最後一次出現的第一個參數替換為第二個參數。

輸入

{{ "Take my protein pills and put my helmet on" | replace_last: "my", "your" }}

輸出

Take my protein pills and put your helmet on