String.split "\n|" inputString
But you would be missing the starting pipe of all blocks Exept the first.
You could also do String.lines and loop over the lines. Accumulate the lines until the next Line start with | character. Then you start a new accumulator
When you say you want to parse it into a List String, how would I know to split at | bar bar. I.e. if you wanted to split on \n then Iād say to do List.split "\n" yourInput, but your input text seems a bit more complex.