Hi
I want to remove all blank spaces from a string.
for ex: local Abc=" Trial test"
how to remove the leading spaces wich will indeed make the var Abc to hold value "Trial test"
thanks
This will actually strip leading and trailing spaces.
function trim (s)
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
end
Thanks buddy
Thats great help