parsing MT4 statements

 
What's the best way to export MT4 statement results to a database? Unfortunately, the magic number and comments fields appear on separate lines from the rest of the trade transaction, so, just copying/pasting from a Web browser to a spreadsheet isn't sufficient. 
Reason: