replace_first

将字符串中第一个参数的第一次出现替换为第二个参数。

输入

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

输出

Take your protein pills and put my helmet on