Posted 21 December 2015 - 08:24 PM
I'm writing a program and I need to process a string so that when a certain character is detected, then the character and the rest of the string after it is removed. For example:
s = somestring/somedelimiter.randomcharacters12345
If I use / as a delimiter, the only thing that should be kept is:
somestring
How would I accomplish this in LUA?