I have data copied from clipboard in the below format and needed to be pasted in excel.
Here, the column delimiter is space and there are spaces in column values as well. How would you generate data table out of this data? there are three columns here.
Normally you’d use the Generate Data Table activity. You could designate - as the delimiter, but in this case that won’t give the desired result. I copied and pasted your sample data into notepad and it appears to be what is called “fixed length format” - meaning each column on each row has the same number of characters. So you can use the Generate Data Table activity and tell it column 1 is 11 characters, column 2 is 11 characters, and then column 3 whatever the maximum value length would be.
That’s assuming your real data always follows this fixed length for each column.
If your data isn’t actually consistent column lengths like that, you’ll have to split it on VbCrLf to get each row into an array, then loop through the array, use RegEx to get the values you want for each column, then Add Data Row to add it to a datatable.
Hey, Thank you so much. For some reason, I am unable to open the xaml file you shared -
’
Also, there is an issue installing “System.Text.ReularExpressions” package.
Do you mind pasting here the screenshot of what you have in 'Regular expressions" activity.