224 posts
Posted 09 April 2015 - 12:02 AM
data:match(":"..":"..file2..":"..":".."(.+)"..";/"..";"..file2..";"..";"):gsub("=n".."32", " ".."n")
sends the entire file, dunno why
side note: file2 is the name of a file
don't ask about the excessive ..s
2679 posts
Location
You will never find me, muhahahahahaha
Posted 09 April 2015 - 12:30 AM
What is it you are trying to find exactly. Be sure to throw a glance at
this site to learn more about magic characters in lua. If you have any questions, be sure to ask. ;)/>
224 posts
Posted 09 April 2015 - 03:20 AM
Im trying to get ::nu::hi;/;nu;;
7083 posts
Location
Tasmania (AU)
Posted 09 April 2015 - 10:35 AM
Despite being a mess, this works in about the manner I'd expect it to. Eg:
local data, file2 = "::nu::hi;/;nu;;", "nu"
print(data:match(":"..":"..file2..":"..":(.+);".."/;"..file2..";"..";"):gsub("=n".."32", " \ ".."n")) --> "hi", 0
This isn't the same version of the line as in the paste you provided in your
last thread about this
exact same line, though, leading me to wonder what else you changed (… and why you didn't stick with that thread?!).
Edited on 09 April 2015 - 08:37 AM