Extract multiple strings of text where data alignment is not consistent

I am not experienced with regex, and I maybe overthinking issue - however I have a data set which is somewhat consistent, but not every line would be the ‘same’ layout:

Here I would want the high-lighted in yellow text, up to first ‘(’ in 1 column
then I would want the alias (red underline) in another column, then the field (underlined in green) in another and so on and so forth.

When I try to do column splitter, the results aren’t very friendly - there has to b
KNIME Regex.xlsx (8.8 KB)
e a better way! Thanks for your help & guidance.

Hi @love_hate_knime and welcome to the KNIME Community Forum,

Does this regex in Regex Split helps?
(.*)\((.*?)\.(.*)\)\s?=\s?.\s?(.*?)\s.*

(Check “Dot matches all characters” in the settings since there is a page break in the last row)

4 Likes

Thank you, this helped!

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