Skip to main content

remove_first

string | remove_first: string
returns string

Removes the first instance of a substring inside a string.

{{ "I hate it when I accidentally spill my duplication potion accidentally!" | remove_first: ' accidentally' }}

Output

I hate it when I spill my duplication potion accidentally!
Was this page helpful?