in reply to data extraction from badly formated txt files
Those look like fixed-width columns to me. It's much easier (well, relatively ;-) to use pack and unpack to handle fixed widths because they allow you to break a line down by number of characters. (Check out the pack and unpack docs.)
|
|---|