Simple question may have a simple answer, but my current solution seems horrible.
local list = {'?', '!', '@', ... etc)
for i=1, #list do
if string.match(string, strf("%%%s+", list[i])) then
-- string contains characters that are not alphanumeric.
end
end
Is there a better way to do this.. maybe with string.gsub?
Thanks in advance.