remove_first - Liquid Filter Reference - 1.0.0

Filter Name remove_first
Group Text
Version 1.0.0

Description

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

Examples

{{ "The rain in Spain falls mainly on the plain" | remove_first: "ain" }}
The r in Spain falls mainly on the plain

Back to Filter List

Back to Liquid Reference for 1.0.0

 

 
Back to Documentation