s/(?<=\n)\s+//; #or, line by line: s/\A\s+//