remove_first删除字符串中的第一个匹配项
ZKEASOFT August 28, 2018
remove_first
remove_first
用于仅从字符串中删除指定子字符串的第一个匹配项。
输入
{{ "I strained to see the train through the rain" | remove_first: "rain" }}
输出
I sted to see the train through the rain
ZKEASOFT August 28, 2018
remove_first
用于仅从字符串中删除指定子字符串的第一个匹配项。
输入
{{ "I strained to see the train through the rain" | remove_first: "rain" }}
输出
I sted to see the train through the rain