How would I split a string based on another substring in a simple way?
e.g. split on \"\\r\\n\"
message1\\r\\nmessage2
=>
You could search for the next occurence of your substring thats used as split token. Such a method will probably return the index of the next occurence and having this you can split the string yourself.