how to split a string by another string ?
- by Nikhil Vaghela
I have a string in following format
"TestString 1 <^ TestString 2 <^ Test String3
Which i want to split by "<^" string.
Using following statement it gives the output i want
"TestString 1 <^> TestString 2 <^> Test String3"
.Split("<^>".ToCharArray(), StringSplitOptions.RemoveEmptyEntries)
But if my string contains "<" , "" or "^" anywhere in the text then above split statement will consider that as well
Any idea how to split only for "<^" string ?