remove_first - Liquid Filter Reference - 0.11.4

Filter Name remove_first
Group Text
Version 0.11.4

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 0.11.4

 

 
Back to Documentation