An example with string.find
Code: Select all
string.find(v,'gam(.*).tmp')
function modules
Code: Select all
function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = ''..k end
if v == 'Gam4B80.tmp' then print(v)
end
s = s .. '['..k..'] = ' .. dump(v)
end
return s .. '} '
else
return tostring(o)
end
end
t = enumModules()
d = dump(t)