replace_last
仅将字符串中最后一个出现的第一个参数替换为第二个参数。
输入
{{ "Take my protein pills and put my helmet on" | replace_last: "my", "your" }}
输出
Take my protein pills and put your helmet on
仅将字符串中最后一个出现的第一个参数替换为第二个参数。
输入
{{ "Take my protein pills and put my helmet on" | replace_last: "my", "your" }}
输出
Take my protein pills and put your helmet on