Join Slack
Powered by
${item.inventorydetail?replace('/[a-z]/gmi', '', '...
# advancedpdf
d
Dennis
09/19/2018, 7:01 PM
${item.inventorydetail?replace('/[a-z]/gmi', '', 'r')}
w
Wolf
09/19/2018, 8:49 PM
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
Wolf
09/19/2018, 8:50 PM
So I think you want
${item.inventorydetail?replace('[a-z]', '', 'rim')}
(
?replace
already replaces all occurrences, so you don't need
g
)
👍 1
d
Dennis
09/19/2018, 9:51 PM
Thanks Wolf!
Open in Slack
Previous
Next