in reply to Re: Pulling white space off before/after string?
in thread Pulling white space off before/after string?
You've got the same idea I have, but I'm too regex newbie to figure out the differences. Can you tell me if there are any differences in our regexes?$buff =~ s/ *$//; #Remove Trailing Spaces $buff =~ s/^ *//; #Remove Leading Spaces
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Pulling white space off before/after string?
by bobf (Monsignor) on Apr 17, 2007 at 05:09 UTC | |
|
Re^3: Pulling white space off before/after string?
by GrandFather (Saint) on Apr 17, 2007 at 05:06 UTC |