stripEnd

Strips a substring from the end of a string.

@{ variable | stripEnd (end) }

Parameters

end
The substring to be stripped from the end of a variable value.

Example

To strip a file extension from the end of a PNG file, you can use this:

@{ :basename | stripEnd ('.png') }
shorten stripStart