How can I cut text from the end of a variable up until a specific character?
Like this:
a_a_a
And I want the last “A” and split the text at the last “_”:
a_a_ | a
Then I want to get 2 strings witch would be like this:
string A = a_a_
string B = a
You can use
lastIndexOfto get the last occurance of the character to be searched and thensubstrto get the string from that index