LiquidJS

TutorialsTagsFiltersPlaygroundAPI
Github
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefindfind_expfirstfloorgroup_bygroup_by_expjoinjsonlastlstripmapminusmodulonewline_to_brpluspoppushprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimestruncatetruncatewordsuniqunshiftupcaseurl_decodeurl_encodewhere

remove_last

v10.2.0

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
Last updated: 2024-04-21 PrevNext
Contents
Back to Top
© 2024 Harttle
Documentation licensed under CC BY 4.0.
    TutorialsTagsFiltersPlaygroundAPI
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefindfind_expfirstfloorgroup_bygroup_by_expjoinjsonlastlstripmapminusmodulonewline_to_brpluspoppushprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimestruncatetruncatewordsuniqunshiftupcaseurl_decodeurl_encodewhere