I want to clean a string of all non alphanumeric character, i am using this, which works great…
local msgLine=textMsg:gsub('%W','')
…but it removes all spaces…and i want to keep them…
i have tried : %W%s, [%W-%s]… but they dont work. I am getting the string from an input text…
Who can i make it works?