Jump to content

Get a certain part of a string


Recommended Posts

Hey im trying to split a string into two parts the string will always have a space like this example:

"Data1 Data2"

How can i make it like this: local data1,data2 = Data1, Data2

i tried:

local data1, data2 = table.concat(thestring, ", ")

Found the answer: Use the Lua split function.

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...