I just want to segment this text file into lines and to classify the lines. If the line starts with "Qty" then the next lines are the order items until the line starts with "GST".
If the line starts with "Total Amount" Then this is the total amount line.
Business me . ' l Address "rwqagePnnter Pro DemcRafifilp Address "mfgr Eva|uat|on Only Contact line 1 Transaction Number 10006 Issue Date 27/02/201 Time 10:36:55 Salesperson orsa orsa Qty Description Unit Price Total 1 test $120.00 $120.00 GST $10.91 Total Amount $120.00 Cash $120.00 Please contact us for more information about this receipt. Thank you for your business. d . test
Please show me how to do with PegJS http://pegjs.majda.cz/