lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Can I do that with a for loop?

S="The quick brown fox jumps over the lazy dog"

for a,b in S:gmatch("(%S+)%s+(%S+)") do
	print(a,b)
end