${item.inventorydetail?replace('/[a-z]/gmi', '', '...
# advancedpdf
d
${item.inventorydetail?replace('/[a-z]/gmi', '', 'r')}
w
From the examples under https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_string_flags it looks like you don't use
//
around the regex
So I think you want
${item.inventorydetail?replace('[a-z]', '', 'rim')}
(
?replace
already replaces all occurrences, so you don't need
g
)
👍 1
d
Thanks Wolf!