You can use the replace method to search for a given string (in this case -4) and replace it with a separator of your choice, possibly a pipe string string ( | ). Then you can use the split method and use the delimiter that is now inserted to split your array.
string = string.replace(replaceString, "|"); string[] parts = string.split('|');
Admittedly, this is a little circular movement, but it will be fast, easy, and will work.
source share