local example = [[ "id":001 "id2":002 ]]for i,y in example:gmatch([["(%w+)"%s*:%s*(%d+)]]) do print(i, y)end
Standard input is empty
id 001 id2 002
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!