data = "24:50:48" for i in string.gmatch(data, "[^:]*") do print(i) end
Standard input is empty
24 50 48
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!