replace_first - Liquid Filter Reference - 0.11.2
Filter Name | replace_first |
Group | Text |
Version | 0.11.2 |
Description
Replaces only the first occurrence of the first argument in a string with the second argument.
Examples
{{ "Baby shark do do do do" | replace_first: "do", "oi" }}
Baby shark oi do do do
Back to Liquid Reference for 0.11.2
Back to Documentation