Lua iterate over letter-number pairs from string?
snippet in lua

Lua iterate over letter-number pairs from string?

user8956

local str = "a3b12a5g625"
for a,b in string.gmatch(str, "(%a+)(%d+)") do
    print(a,b)
end