extract data from string in lua - SubStrings and Numbers
snippet in lua

extract data from string in lua - SubStrings and Numbers

user5299

x,y,z=line:match("(%d+)x%s+(.-)%s+%((.*)%)")
t = {}
t[z] = {}
t[z].card = y
t[z].count = x