How to add a single quote in a string variable

1
Hello everyone, how can I add a single quote to my string variable activity for example, “ we weren’t there” the ‘ in the n’t  noting that I’m using double quotes “ so I cannot use it and replace these with a replaceAll function
asked
1 answers
6

You would need to escape it and use two single quotes instead of one, e.g.

'we were''t there'

 

answered