mrogaski opened this issue 8 years ago ยท 0 comments
This should match ^%s*(.+)%s*$, but using the convenience function strtrim() is probably better.
^%s*(.+)%s*$
strtrim()
local function trim(s) return string.gsub(s, '^%s*(.-)%s*$', '%1') end