With a regex, of course.
s/^\s+//; # removes leading white space s/\s+$//; # removes trailing white space
emc
Insisting on perfect safety is for people who don't have the balls to live in the real world.
In reply to Re: Pulling white space off before/after string?
by swampyankee
in thread Pulling white space off before/after string?
by ecuguru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |