Patterns in Lua with space
snippet in lua

Patterns in Lua with space

user8583

text = "Hello.%23 Awesome7^.."
pattern = "%S+"
for word in string.gmatch(text, pattern) do
  print(word)
end