fork(18) download
  1. local a = "Hello\nmy name is\nSomeone\n"
  2. for i in string.gmatch(a, ".*\n") do
  3. print(i)
  4. end
Success #stdin #stdout 0.01s 5436KB
stdin
Standard input is empty
stdout
Hello
my name is
Someone