I don't use \s because I want to leave the newlines alone.s/^[\t\ ]+//gm; s/[\t\ ]+$//gm;
In reply to Re: trim leading & trailing whitespace
by bart
in thread trim leading & trailing whitespace
by ady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |