Skip to main content

remove_last

string | remove_last: string
returns string

Removes the last instance of a substring inside a string.

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

Output

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