How to replace 2 or more characters in advanced pd...
# advancedpdf
l
How to replace 2 or more characters in advanced pdf? For example, I want to replace ; or ^ with blank space. I've tried ?replace(";"|"^"," ").
m
You can either change the replaces
${field?replace(",", " ")?replace("^", " ")}
or use regex
${field?replace(",|\\^", " ", "r")}
l
Thank you. How do you know which characters to escape? (Sorry, not a developer)
I am aware of the first option but I have like 10 characters to replace, so it'd be super long
m
It would be any character that could be interpreted as a regex construct, can check the list here