Extract text between second set of "(" and ")"

Hi everyone!

I have the following column with the product name and unit measure in between parenthesis.

image

There are several products that have more than one set of ( ) , what node and expression should I use to return the text between the second set of parenthesis?

Example: 21-0-0-24 Ammonium Sulfate (AMS) (tn) —> tn

Thank you all for your help.

Welcome to the forum, @tb_g_23.

I’d use the Regex Extractor node for this; the expression \(([^)]+)\)$ gives the desired result:

image

3 Likes

Thank you! Seems straight forward.
Where can I find this node to install?
Might be an amateur question, I can’t seem find the Regex Extractor node available to install. I’ve searched the installed node repository and the community hub. I have the latest build of KNIME installed.

You can get it as part of the Palladian extension

The sidebar on the right has installation instructions.

1 Like

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