I tried doing this by myself, and all I figured out was how to split the string into several lines:
local line = "Hello my name is Name"
for token in string.gmatch(line, "[^%s]+") do
print(token)
end
This would result in:
Hello
my
name
is
Name
Which is not what I need. Any suggestions?