lua - Remove all chars from a string except "a","b","c","d" -
i have string want replace chars , digits ""
, except chars a
,b
,c
, d
.
instead of having write multiple lines of long code in example below, there other way write more efficient?
mystring:gsub("[%(%)%.%%%+%-%*%?%[%]%^%$%,]", "") --special chars ... --same chars ... --same digits
Comments
Post a Comment