@Raghavendraprasad
Hello,
I assume that RegEx would be the answer.
Character is always fixed.
Looking for solution/also trying alone to get the solution(and I will post it if I found).
the str.remove function will get the position of the delimiter (/) and then remove it which will help you not to code the index number into your assign statement itself…any which way works is fine i guess
Using this Method to find the index of 2nd occurrence of “/”.
IndexOf(String, Int32) Reports the zero-based index of the first occurrence of the specified string in this instance. The search starts at a specified character position.
str.indexOf(“/”, str.indexOf(“/”) + 1)+1 - this will return the index of second occurrence(“/”).
And it will start searching from index 7 (str.indexOf(“/”) + 1).
Then, using remove method to remove 2 characters from the starting index.
Remove(Int32, Int32) Returns a new string in which a specified number of characters in the current instance beginning at a specified position have been deleted.