Skip to content

Remove First ​

Removes the first instance of a substring from a string.

liquid
{{ string | remove_first: substring }}

Example ​

liquid
{{ 'Hello, Hello world' | remove_first: 'Hello' }}

Output

html
, Hello world