Posted 16 December 2013 - 12:28 AM
data = "test.rubikscuber1022.bentallea"
print(data:find(" ") --prints nil as expected
print(data"find(".") --prints 11
data= "akjdshgksnvb mclvvb sfjkgsfdv.saffg serg sggbsddfg w" --keyboard smashing just for the purpose of testing.
print(data:find(" ")) -- prints 1313
print(data:find(" ")) --prints 11
data = "test rubikscuber1022.bentallea"
print(data:find(" ")) --prints 55
print(data:find(".")) -- prints 11
this is running in the lua program under CCEmu with computercraft.jar version 1.5the comments are the actual output. none of the print commands seemed to print the correct number other than then first one where the pattern was not in the string.
any help?