Advance PDF Template Tags

remove_beginning

Removes the parameter substring from the beginning of the string, or returns the original string if it doesn’t start with the parameter substring.

For example:

${"abcdef"?remove_beginning("abc")}
It returns def

${"foobar"?remove_beginning("abc")}
It returs foobar

remove_ending
Removes the parameter substring from the ending of the string, or returns the original string if it doesn't end with the parameter substring.
For example:
${"abcdef"?remove_ending("def")} 
It returns abc
${"foobar"?remove_ending("def")}
it returns foobar

Leave a comment

Your email address will not be published. Required fields are marked *