$str =~ s/^\s+//; $str =~ s/\s+\z//; [download]
In reply to Re: regexp problem by ysth in thread regexp problem by jeanluca