Jump to content




Match gets entire file


  • You cannot reply to this topic
3 replies to this topic

#1 Creeper9207

  • Members
  • 211 posts

Posted 08 April 2015 - 11:02 PM

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

#2 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 08 April 2015 - 11:30 PM

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. ;)

#3 Creeper9207

  • Members
  • 211 posts

Posted 09 April 2015 - 02:20 AM

Im trying to get ::nu::hi;/;nu;;

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 09 April 2015 - 09: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 by Bomb Bloke, 09 April 2015 - 09:37 AM.






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users