local STR = [[print("Hi")]]
for i in string.gmatch(STR, "[%\"%w.=%s*%\"]+") do
print(i)
end
i have no idea of how to get the index of the match
help please?
local STR = [[print("Hi")]]
for i in string.gmatch(STR, "[%\"%w.=%s*%\"]+") do
print(i)
end
i have no idea of how to get the index of the match
help please?
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
first of all, why do you want the index?