replaceAll()

1
Hello all I want to replace apostrophes so, I’m unable to use replace all for this I tired with replaceAll($Object,'[''','\''']') Its throwing an error inexpression.
asked
4 answers
7

Hi,

 

You can use this Expression replaceAll($YourString, '’', ''), which means First Parameter is your String, the Second one is what you want to replace is put in a single quote, and finally the Third parameter is to empty the apostrophes.

 

For Ref. https://docs.mendix.com/refguide/string-function-calls/#13-replaceall.

answered
4

Hi Desai,

you try this one : replaceAll($description, '''', '\')

answered
3

A single quote should always be escaped again by a single quote. So you should plase four single quotes ‘’’’ here if you want to search the single quote ‘

Regards,

Ronald

 

answered
0

You can use replaceAll($YourString, '’', '')

answered