I am using the Retrieve Document Text element in workflow and I get the output like this.
|B151106-08PBOI1|RSD|DUCK|DONALD|D|DUCK DONALD D|
|B151106-08PBOI1|RSD|LAST|FIRST|M|LAST FIRST M|
|B151106-08PBOI1|ID|Huan, Don|
|B151106-08PBOI1|ID|Last, First|
I want to make each line its own token so I can then move each line into a database for a third party program. This file could have three lines or more up to fourteen. Essentially I would like to split on a carriage return. I have tried putting /r/n into split and several variations of regular expressions.
I'm sure I am missing something obvious but how can I do this?
Thanks in advance.