lets say text is 'this is some text'
and if you want to access individual characters, you can just do text[3] (that would get you 'i'). If you wanted the 'o', it would be text[10]. etc etc.
and length(text) is... the length.
so put it all together, and you get... the last character in the string.
You could also have used the right() func, but off the top of my head, i wasnt sure the params.
(right() will get you the right portion of the string, from the specified index) So that would have been simpler, but... yeaaah
Ooo. i just realized this wont work if the string has repeating letters.
Simba Code:
world := StrToIntDef(ExtractFromStr(copy(text, length(text)+1-pos(':', text), pos(':', text)) , numbers), -1);
Seems as if simba doesnt have right() off the bat. Very well. I did it with the copy() func.