I have a string in Lua and want to iterate individual characters in it. But no code I\'ve tried works and the official manual only shows how to find and replace substrings :
If you're using Lua 5, try:
for i = 1, string.len(str) do print( string.sub(str, i, i) ) end