Hello,
I'm a novice perl user, making the best out of existing scripts written by gurus and need some help.
I'm trying to parse the follwoing data so that data after ";" is put into a different column within excel.
US;0;Search;,"741,305"
US;0;Item_Active_None;WDVW,"80,539"
US;0;All matching items for sale.;,"49,117"
I'm using the following parsing codes, but none of these are picking up the above lines of data.
s/^"(.{2,4});([0-9]{1,3});(.*?);(.*?),"$/$1|$2|$3|$4/g;
s/^"(.{2,4});;(.*?);(.*?),"$/$1||$2|$3/g;
s/^"(.{2,4});([0-9]{1,3});(.*?);(.*?)"$/$1|$2|$3|$4/g;
s/^"(.{2,4});;(.*?);(.*?)"$/$1||$2|$3/g;
s/^"(.{2,4});([0-9]{1,3});(.*?),"$/$1|$2|$3|/g;
s/^"(.{2,4});;(.*?),"$/$1||$2|/g;
s/^"(.{2,4});([0-9]{1,3});(.*?)"$/$1|$2|$3|/g;
s/^"(.{2,4});;(.*?)"$/$1||$2|/g;
s/^(.{2,4});([0-9]{1,3});"(.*?);(.*?),"$/$1|$2|$3|$4/g;
s/^(.{2,4});;"(.*?);(.*?),"$/$1||$2|$3/g;
s/^(.{2,4});([0-9]{1,3});"(.*?);(.*?)"$/$1|$2|$3|$4/g;
s/^(.{2,4});;"(.*?);(.*?)"$/$1||$2|$3/g;
s/^(.{2,4});([0-9]{1,3});"(.*?),"$/$1|$2|$3|/g;
s/^(.{2,4});;"(.*?),"$/$1||$2|/g;
s/^(.{2,4});([0-9]{1,3});"(.*?)"$/$1|$2|$3|/g;
s/^(.{2,4});;"(.*?)"$/$1||$2|/g;
s/^(.{2,4});([0-9]{1,3});(.*?);(.*?)$/$1|$2|$3|$4/g;
s/^(.{2,4});;(.*?);(.*?)$/$1||$2|$3/g;
s/^(.{2,4});([0-9]{1,3});(.*?)$/$1|$2|$3|/g;
s/^(.{2,4});;(.*?)$/$1||$2|/g;
Any help with the above would be greatly appreciated.
