String Manipulation tool to add ' to a word

Hi Everyone,

I’m used to Alteryx but want to get more comfortable with using KNIME. I’m trying to use the String Manipulation tool to add ’ to a word in a sentence.

At present the sentence reads: I didnt know about
I want it to read: I didn’t know about

I have tried using this: replace($Which of the following statements?$, (“didnt”) = “didn'\t”))

Please help!

Hello @svijay and welcome to the KNIME forum.

You can test the following code in the String Manipulation node:
replace($YourText$, "didnt", "didn't")

BR

3 Likes

Thank you!!! That did the trick!! I was wondering where I was going wrong!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.