Hello,
I have a situation where I am splitting words from a text input control. I have all the words split into a collection with the first column being the row number and the second column being the word. So far so good. But then I noticed any special characters stay with the word. How can I also split any special characters to be their own row as well? For example....
Here is what I have now:
oPostNum OriginalString
1 Hi,
2 How
3 Are
4 You
5 Today?
This is what I need:
oPosNum OriginalString
1 Hi
2 ,
3 How
4 Are
5 You
6 Today
7 ?
The code I have at this point which gives me the output I listed first above....
ClearCollect(
colOriginalStrings,
RenameColumns(
With(
{
records: Trim(
Split(
originaltext.Value,
" "
)
)
},
ForAll(
Sequence(CountRows(records)),
Patch(
Last(
FirstN(
records,
Value
)
),
{oPosNum: Value}
)
)
),
"Value",
"OriginalString"
)
)
Any help would be greatly appreciated!!