Files
liquid/filters/remove_first.md
2016-11-08 16:23:33 -05:00

469 B

title, description
title description
remove_first Liquid filter that removes the first occurence of a given substring from a string.

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

Input

```liquid {% raw %} {{ "I strained to see the train through the rain" | remove_first: "rain" }} {% endraw %} ```

Output

```text {{ "I strained to see the train through the rain" | remove_first: "rain" }} ```