From: Mario Trento Date: 2012-11-09T11:13:32+09:00 Subject: Ruby script to process html Hi, What would be the most cool way to process/parse html and write it out in another format, kind of transpose mode. e.g INPUT:=============================== type id=M_btn_Mainl00 home clickAndWait id=M_ct200_MainContent Wanted output:============================ command: command: ({ 'type', target: 'id=M_btn_Mainl00', value: 'home' }); command: ({ 'clickAndWait', target: 'id=M_ct200_MainContent' }); // no value this to compose some fancy automation libs. I see the way to basically read and capture lines by tugs , etc.. but feel should be more better way. Tx Dai -- Posted via http://www.ruby-forum.com/.