[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Trailing spaces
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 08 May 2002 15:31:46 -0300
> I'm looking for a gsub pattern to remove leading and trailing spaces.
function t(x) return gsub(x, "^%s*(.-)%s*$", "%1") end
-- Roberto