Question:
So I wanna replace all| ' "
symbols in attribute.
But this statement doesn’t work at all, it literally puts this text into value of attributeAnswer:
I believe since the delimiters are single quotes you’d need to either choose different ones, or escape the single quote you are trying to remove. Since[]
creates a character class I shouldn’t need to |
each character either. This should work:${attribute:replaceAll('[|\'"]', ' ')}
If you have better answer, please add a comment about this, thank you!