Hey,
i am currently building a flow, which puts a csv table into a xlsx file. A part of that is splitting a single line of content into multiple
substrings to match them with the columns of the excel table. The difficult part is to find the correct expression for the compose action to split the string.
The data lines look like this: text,text2,text3,1,2,3,01.01.2001 or text,text2,2,4,6,02.02.2002 and I want to split it into 5 parts. Starting at the back it needs to be split at every ",". The challenge is here that I don't know how to stop after the 4th "," so that I get only 5 Parts.
I tried different expressions like:
reverse(take(reverse(split(item(), ',')), 5))
But this cut everything behind the 5th ",".
The result should look like this: ["text,text2,text", "1", "2", "3", "01.01.2001] or ["text,text2", "2", "4", "6", "02.02.2002"]
Thanks for every help 🙂