Jump to content




split string using words

help lua

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

#1 lukasloko

  • Members
  • 28 posts
  • Location<Insert a location joke here>

Posted 07 February 2016 - 01:26 AM

I already made some question about that kinda of stuff some time ago, but only now i'm having problems and question about that again.

I'm making routers and programs that communicate with others programs. The programs need to split the messages that they receive from the others into blocks (like password$nickname$balance$status) and then process it. And I have not much more characters to use as split pattern without overlapping.

My question is:

Can you split strings using words like:
Spoiler
Output:
Spoiler

maybe it has a easy awsner but i'm not able to figure out it.

#2 The_Cat

  • Members
  • 119 posts

Posted 07 February 2016 - 01:40 AM

Why not just use a table to send the data? Then you could simply do something like tableName.password, tableName.username... etc

#3 lukasloko

  • Members
  • 28 posts
  • Location<Insert a location joke here>

Posted 07 February 2016 - 01:42 AM

Hmmm, that could work the way that i'm looking for. I will try thank you for the hint





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users