remove all non-alphanumeric characters from lua string
snippet in lua

remove all non-alphanumeric characters from lua string

user6604

str = str:gsub('%W','')