I have what is probably a very simple question.
I want to do a classic String.Split(), but with a string, not a character.  Like string.Split("word") and get back an array just like if I had done string.Split('x').
You can use String.Split(string[], StringSplitOptions options).
The code will look like:
var results = theString.Split(new[] {"word"}, StringSplitOptions.None);
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With