I have as string say ; ABCD_1234_xyz
I want to separate (or create columns) only until the first occurrence of the separator _.
So in this case I should get 2 columns one with ABCD and another with 1234_xyz
I cant use cell splitter for this since it will just separate it into 3 columns.
Is there a way to do this in KNIME?
You can still use the cell splitter for this. Limit the array size to 2. This will capture the first group and any subsequent data in the second group. See the example below:
This is exactly what I was looking for.
can I ask one last guidance since I’m not too familiar with Regex?
n the pattern string that you provided, which characters should I modify if the delimiter is different. For example if the delimiter is now a period . ?
In this case, the _ is the delimiter so all occurrences of it should be replaced in the regex for the delimiter of choice. Please be aware that you have to escape certain characters in a regex.