Liquid Views
Overview
Filters
append
capitalize
component_url
date
default
divided-by
downcase
escape
escape_once
first
join
last
map
minus
modulo
newline_to_br
plus
prepend
remove
remove_first
replace
replace_first
reverse
size
sort
split
strip_html
strip_newlines
times
truncate
truncate_words
upcase
Objects
Tags
Comment
Control Flow
Include
Iteration
Raw
Variables
remove_first
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
Was this article helpful?
Last updated: 06/27/2019
Last updated: 06/27/2019