remove_first

Added in: v1.9.1

移除字符串中出现的第一个指定子字符串。

输入

{{ "I strained to see the train through the rain" | remove_first: "rain" }}

输出

I strained to see the t through the rain