On Monday, September 29, 2003, at 07:04 PM, [EMAIL PROTECTED] wrote:

Is there a func or a onliner for removing blanks from both ends?

I'm using these:

$username =~ s/^\s+//;
$username =~ s/\s+$//;

We could combine those:


$username =~ s/^\s*(.*?)\s*$/$1/;

Hope that helps.

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to