local str = "*123#"
if type(tonumber(str)) == 'number' then
print('Only numbers ')
else
print('Not only numbers ')
end
local str = "123"
if (string.match(str,"[^%w]") == nil) then
print('Only numbers ')
else
print('Not only numbers ')
end
local str = "1-23"
if tonumber(str) then
print('Only numbers ')
else
print('Not only numbers ')
end