Help for this page
Select Code to Download
Select
or
download this
$string =~ s/^\s*(\S.*?\S)\s*$/$1/;