remove_last
Removes only the last occurrence of the specified substring from a string.
Input
{{ "I strained to see the train through the rain" | remove_last: "rain" }}
Output
I strained to see the train through the
Removes only the last occurrence of the specified substring from a string.
Input
{{ "I strained to see the train through the rain" | remove_last: "rain" }}
Output
I strained to see the train through the