Posted 20 December 2012 - 06:46 PM
i have a variable that is bob:23(i have a whole file with similar), how do i make the 23 into its own variable?
str, val = string.match("bob:23", "([^:])+:(.*)")
str contains bob, val contains 23. See string manipulation.