Hi,
Can anyone help me?
How i schould get number of last occurance of finded word in “find text position”?
I’m using it in case with telegram web app.
For example, i have many messages in chat, just like:
Start
Start 123
Start word
I want find text position of last massege what include “start”
Number of occurence is not fixed, it’s dynamic, but i need only last occurence. In this example we have 3 times. So, in all i want have an integer=3.
you can split the whole string and store it in array. last index of the array will be your required text.Replace the “start” into “” in last array index to get the output.
I think it’s help me in another case, thx.
But in this case it’s return index of last character of word, that we find, not number of occurence.
In this case i want get int=3
This will return the text from the strText string considering that you can have some letters in uppercase.
So if your string is “Start 123, start kjkj Start: ok” you will get “Start: ok”