remove_first - Liquid Filter Reference
On this page
Description
Removes only the first occurrence of the specified substring from a string.
| Property | Value |
|---|---|
| Return Type | string |
| Category | text |
Examples
liquid
{{ "The rain in Spain falls mainly on the plain" | remove_first: "ain" }}
Output: The r in Spain falls mainly on the plain