I am looking for a way to find the first occurence of: " " when searching backwards in String1 with beginning at index where # was found.
However with LastIndexOf, this will find the Last occurence of " ".
How can I find the first occurence of " " wich is just Before the letter "R" in the string ?
String1^ = " aaa bbb Rcc # ddd";
int index = String1->IndexOf(" # ");
int index2 = String1->LastIndexOf(" ", index - 1);