title: Splitting a string into multiple strings with multiple delimiters without removing?
body: <p>I use boost framework, so it could be helpful, but I haven't found a necessary function.</p>
  
  <p>For usual fast splitting I can use:</p>
  
  <pre><code>string str = ...;
  vector&lt;string&gt; strs;
  boost::split(strs, str, boost::is_any_of("mM"));
  </code></pre>
  
  <p>but it removes m and M characters.</p>
  
  <p>I also can't siply use regexp because it searches the string for the longest value which meets a defined pattern.</p>
  
  <p>P.S. There are a lot of similar questions, but they describe this implementation in other programming languages only.</p>