I have a string that looks like that:
text = "Text1 Text2 Text3 Text4 Text5\n
Here comes more test text\n
and even more1 more2 more3\n
tex text textt te tex\n
1 2 3 4 5
..."
As you can see the data is separated by a single space character (and there are exactly 5 “texts” (I mean strings) in a row. I want to write a CSV table to make the data look nice. So that it looks like that:
Col1 2 3 4 5
Text1 Text2 Text3 Text4 Text5
Here comes more test text
and even more1 more2 more3
tex text textt te tex
1 2 3 4 5
There should be 5 columns and each string should be in a cell.
How can I do that?
You try this