in reply to multi-line (string doc) parsing

I suspect that your problem is best solved by locating the positions of the columns and then using an unpack to extract columns into text. For an idea on how to find positions, take a look at the pos trick in Locate char in a string. (Probably with a pattern like /(^| )(?=\S)/g.)

Of course it will be a bit harder than that because you have to recognize when you leave the ASCII table and start another.

And check first whether you have tabs. If you do then you should either be able to use them for a split or else follow the advice in How do I expand tabs in a string? so you can do the above.

  • Comment on Re (tilly) 1: multi-line (string doc) parsing