Correct pattern doesn't work in Lua gmatch
snippet in lua

Correct pattern doesn't work in Lua gmatch

user9749

var1, var2, var3=str:match('(%d+)%:?([%a.]*)%:(%d+)$')
print(var1)
print(var2)
print(var3)