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' }}
Code
{{ "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!
Output
I hate it when I accidentally spill my duplication potion!Was this page helpful?