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 reply to Re^2: trim leading & trailing whitespace
by thinker
in thread trim leading & trailing whitespace
by ady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |