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