fork download
  1. v = "$color9: rgba(32, 36, 51, 1);";
  2. result = {string.match(v, "%$color(%d+):%s+rgba%((%d+),%s+(%d+),%s+(%d+),%s+%d+%);")}
  3. id, r, g, b = result[1] or 0, result[2] or 0, result[3] or 0, result[4] or 0
  4. print( id, r, g, b);
  5.  
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
9	32	36	51