symgryph has asked for the wisdom of the Perl Monks concerning the following question:
I am having a devil of a time removing zeroes from the following type of output generated by brain dead excel program.
010.231.000.049,41145,010.231.000.049,1363,CDU01V43 010.231.000.050,20,010.116.223.024,2803,ZVC629
I did try some various regexes, but they don't seem to hit all the zeroes when I cat line by line. Here are some of the regexes that I used:
while (<STDIN>) { chomp; s/^0//; s/\.0([^\.])/.$1/g; print $_ . "\n"; }
|
---|