Quantcast
Channel: KNIME RSS
Viewing all articles
Browse latest Browse all 4157

String Manipulation RegEx Replace Not Working?

$
0
0

Hello all,

I would like to find the pattern \(\d,\d,\d\) and replace it with "".

Example of string:

C(3,0,1)-2(1)-C(2,0,1)=2 C(3,0,1)-2(1)-C(3,0,1)=1 C(3,0,2)-2(1)-C(3,0,1)=-2 C(3,0,2)-2(1)-C(3,0,2)=-1 O(1,0,0)-2(1)-C(3,0,1)=1 O(2,0,1)-2(1)-C(3,0,2)=-2

I am using String Manipulation to do it with a code like this:

regexReplace($Reaction Vector AP2$,"\(\d,\d,\d\)","") in which $Reaction Vector AP2$ is the name of my target column.

The node looks like not working at all.

Can you help me?

Thanks,

Giammy


Viewing all articles
Browse latest Browse all 4157

Trending Articles