in reply to Re: trim leading & trailing whitespace
in thread trim leading & trailing whitespace
Hi bart
In the example I gave above,
s/^\s*(.*?)\s*$/$1/gmthe combination of the \m modifier, and the line anchors ^ and $ will ensure the newlines are left alone
cheers
thinker
In Section
Seekers of Perl Wisdom