LiquidJS

TutorialsTagsFiltersPlaygroundAPI
Github
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefindfind_expfirstfloorgroup_bygroup_by_expjoinjsonlastlstripmapminusmodulonewline_to_brpluspoppushprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimestruncatetruncatewordsuniqunshiftupcaseurl_decodeurl_encodewherewhere_exp

remove_first

v1.9.1

Removes only the first occurrence of the specified substring from a string.

Input

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

Output

I sted to see the train through the rain
Last updated: 2024-04-28 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_encodewherewhere_exp