Replace or remove a portion of string with a regex

Thanks @Daniel_Weikert , I will keep that in mind for the future.

I was able to get the outcome desired with the following:

*regexReplace($column1$, "(\[)+(Disabled] )", “”)

I appreciate you.

J.

1 Like

Hi All, I would like to go back to this older post of mine and reiterate for new users coming into Knime and having trouble with regex.

A lot more about regex on Knime got much better clarified when I found out that we must use the ‘Java based’ Regex. I had no idea about that before. So if you look at this post Inserting a new line in text by string replacer - #16 by ArjenEX It should make things a bit clearer. Make sure you use the regex101.com, play around w that and follow the great advice given by @ArjenEX . It made things a lot clearer to me.

Hope it helps you too.

4 Likes