Replacement string regex

Hi,

I wanted to ask If replacement regex will work in normal knime Nodes (without JavaScript)?

like for example, i want to replace ‘x’ by ’ pix by ’ & end with ‘pix’ as shown in the bellow example.

image

this is what I am trying in string manipulation node

And the result I am getting is
image

and this is what I tried in String replacer node

and the result was

image

Hi @Loke2707
I initially thought this was due to needing double-backslash but I’ve changed my mind!

Try this instead:

regexReplace($column1$,"([0-9]+)x([0-9]+)" ,"$1 pix by $2 pix" )

image

6 Likes

I see, so this works as a group reference in knime, Thanks @takbb for your quick response

2 Likes

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