05.04.2016, 13:09
If you exactly know how the text is supposed to look, as you obviously do, it is possible. Although not with "strfind"
You can use the "strfind" function the way you do to find a starting position from where to search.
Now you can either use something like strmid to get the number out of the string, or call it directly like: text[position];
The "position" would be "start" + the length of the text from the start pos to the number.
e.g.
You can use the "strfind" function the way you do to find a starting position from where to search.
Код:
new start = strfind(text, "this is mean to id", true);
The "position" would be "start" + the length of the text from the start pos to the number.
e.g.
Код:
new position = start + strlen("this is mean to id "); new id = text[position];