lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I'm looking for a gsub pattern to remove leading and trailing spaces.


  function t(x) return gsub(x, "^%s*(.-)%s*$", "%1") end

-- Roberto