note
sbrothy
<p>This is ofcourse C++ and not perl. Still, for completeness sake:</p>
<p>I ended up using <a href="https://www.boost.org/doc/libs/1_41_0/libs/regex/doc/html/boost_regex/ref/regex_token_iterator.html">boost::regex_token_iterator</a>.</p>
<p>So in all it's glorious simplicity it ended up being just:</p>
<code>
boost::regex re("\\s+");
</code>
<p>Regards.</p>
11140499
11140527