Split on substring
How would I split a string based on another substring in a simple way?

e.g. split on "\r\n"

message1\r\nmessage2 

=>

message1
message2

From what I've been able to find both boost::tokenizer and boost::split only operates on single characters.
Split on substring
===

How would I split a string based on another substring in a simple way?

e.g. split on "\r\n"

message1\r\nmessage2 

=>

message1
message2

From what I've been able to find both boost::tokenizer and boost::split only operates on single characters.