I am trying to get every character in a string before and after ", "
So far I have tried: ExampleStringVariable:sub(1, ExampleStringVariable:find(", ") -1. However, :find returns as nil.
Does anyone know how I would go about doing this? I am trying to get the numbers before and after the , in the string. I want it to go from (1, 0.5) to Var1 = 1, Var2 = 0.5. Help is greatly appreciated, thank you!
Yes. That will work, but if you have the parentheses in the string, you should follow the second half of my reply if it don’t want to have them in there.