I am checking a string for non-alphanumeric char.
if(str:match("%W")) then --make str alpha-numeric end
How to remove all non-alphanumeric characters from a string using lua?
Use gsub (as suggested by Egor Skriptunov):
str = str:gsub('%W','')
Source: https://habr.com/ru/post/1479414/More articles:jquery draggable does not allow dragging clone images - javascriptDownload partial html using javascript inside - javascriptProblems displaying modal representation programmatically - iosRegular expression for UK Mobile Number - Python - pythonRefresh html when model changes - javascriptWhat is the best practice for multi-threaded handler on Android? - androidunique_ptr usage - class map - c ++Is the file closed? - pythonHow to create a fixed top panel? - htmlWhy is there a StackOverflowError in the following Java code? - javaAll Articles