Posted: Thu May 12, 2016 12:49 pm Post subject: Stringlist and space.
I have been searching this for a while and haven't found an answer.
If I have a line in a stringlist, as the follwoing:
For example, the stringlist variable is named as "list", and this line is the fourth line in the stringlist:
Code:
12345 abc --for example, this is the fourth line, which is list[3]
There is a "space" between "12345" and "abc", and I just want to get the first part of this line, which is "12345". What functions or methods should I use?
@ Penguin, I had read the LUA manual before making the post, but I was unsure about whether I could use string.match() function with list[3]. Now, I know the answer, Thank you.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum