Built-ins for strings used to split the data into fields in advanced pdf/html template.
keep_after
Removes the part of the string that is not after the first occurrence of the given substring. For example:
TEMPLATE
${“abcdefgh”?keep_after(“de”)}
will print
OUTPUT
fgh
keep_after_last
Same as keep_after, but keeps the part after the last occurrence of the parameter, rather than after the first. Example:
TEMPLATE
${“foo.bar.txt”?keep_after_last(“.”)}
will print
OUTPUT
txt
keep_before
Removes the part of the string that starts with the given substring. For example:
TEMPLATE
${“abcdef”?keep_before(“de”)}
will print
OUTPUT
abc
keep_before_last
Same as keep_before, but keeps the part before the last occurrence of the parameter, rather than after the first. Example:
TEMPLATE
${“foo.bar.txt”?keep_before_last(“.”)}
will print
OUTPUT
foo.bar