I get strings in the following format:
abc:321,cba:doodoo,hello:world,eat:mysh0rts
I'd like to grab one instance of the data pairing from the string and remove it from the string, so for example if I wanted to grab the value following hello:world I'd like this to happen:
local helloValue, remainingString = GetValue("hello")
Which will return world for hellovalue and abc:321,cba:doodoo,eat:mysh0rts for remainingString.
I'm doing this rather cumbersomely with loops, what would a better way of doing it be?
abc:321,cba:doodoo,eat:mysh0rts,hello:world?