Lua: How to check if a string contains only numbers and letters?
snippet in lua

Lua: How to check if a string contains only numbers and letters?

user4718

if(str:match("%W")) then
  --Improper characters detected.
end