in reply to Re^3: removing redundantwhitespacein thread removing redundantwhitespace
for ($text) { s/^\s+//gm; s/\s+$//gm; s/(\s)\s+/$1/g; } [download]