So I have a string of text that I have pulled from a textbox. I want to be able to pull out the middle characters from this string and use them. The only thing is that the middle characters are going to change in length so it's not always going to be a set length. But the middle characters will always be enclosed by "\" before the first middle character that I want and "\" after the end of the last middle character that I want. So for example I have a string that looks like:
abcd efg\hijk\lmno
...I want to be able to pull out "hijk" and put that into another string. How can I do this?
Thanks for the help!
abcd efg\hijk\lmno
...I want to be able to pull out "hijk" and put that into another string. How can I do this?
Thanks for the help!