remove删除字符串中的匹配项

remove删除字符串中的匹配项

ZKEASOFT August 28, 2018


remove

remove用于从字符串中删除指定子字符串的每个匹配项。

输入

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

输出

I sted to see the t through the

微信公众号